File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636; ;; Code:
3737
38- (require 'cl-lib )
39-
4038(add-hook 'after-change-major-mode-hook 'god-mode-maybe-activate )
4139
4240(defvar god-local-mode-paused nil )
@@ -192,10 +190,10 @@ if ARG is zero or a positive number, or disable the mode if ARG
192190is a negative number."
193191 (interactive )
194192 (let ((new-status
195- (cond
196- ((null arg) (if (bound-and-true-p god-local-mode) -1 1 ))
197- ((> 0 arg) -1 )
198- (t 1 ))))
193+ (cond
194+ ((null arg) (if (bound-and-true-p god-local-mode) -1 1 ))
195+ ((> 0 arg) -1 )
196+ (t 1 ))))
199197 (setq god-global-mode t )
200198 (mapc (lambda (buffer )
201199 (with-current-buffer buffer
@@ -279,7 +277,7 @@ KEY-STRING-SO-FAR should be nil for the first call in the sequence."
279277 (S-delete . " <S-delete>" )
280278 (S-return . " <S-return>" ))
281279 ; ; f1..f35 and S-f1..S-f35
282- (cl- mapcan (lambda (i )
280+ (mapcan (lambda (i )
283281 (list (cons (god-mode-make-f-key i) (format " <f%d > " i))
284282 (cons (god-mode-make-f-key i t ) (format " S-<f%d > " i))))
285283 (number-sequence 1 35 )))
@@ -298,9 +296,10 @@ from the command loop."
298296 ; ; Adding an element (t . key) to `unread-command-events' will add key to
299297 ; ; the current command's key sequence.
300298 (setq unread-command-events
301- (cl-loop for key in (append (read-kbd-macro key-string-so-far t )
302- (list help-char))
303- collect (cons t key)))
299+ (mapcar (lambda (key )
300+ (cons t key))
301+ (append (read-kbd-macro key-string-so-far t )
302+ (list help-char))))
304303 ; ; Return nil so that `god-mode-lookup-command' doesn't perform any action.
305304 nil )
306305
You can’t perform that action at this time.
0 commit comments