mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
General, minor reformatting/refactor
This commit is contained in:
@ -299,7 +299,6 @@ Example
|
|||||||
forms)
|
forms)
|
||||||
(throw 'skip 'local))
|
(throw 'skip 'local))
|
||||||
((and doom--keymaps states)
|
((and doom--keymaps states)
|
||||||
|
|
||||||
(dolist (keymap doom--keymaps)
|
(dolist (keymap doom--keymaps)
|
||||||
(when (memq 'global states)
|
(when (memq 'global states)
|
||||||
(push `(define-key ,keymap ,key ,def) forms))
|
(push `(define-key ,keymap ,key ,def) forms))
|
||||||
|
@ -367,7 +367,7 @@ The available conditions are:
|
|||||||
,@(if (and modes (listp modes))
|
,@(if (and modes (listp modes))
|
||||||
(cl-loop for hook in (doom--resolve-hook-forms modes)
|
(cl-loop for hook in (doom--resolve-hook-forms modes)
|
||||||
collect `(add-hook ',hook #',hook-name))
|
collect `(add-hook ',hook #',hook-name))
|
||||||
`((add-hook 'after-change-major-mode-hook ',hook-name))))))
|
`((add-hook 'after-change-major-mode-hook #',hook-name))))))
|
||||||
(match
|
(match
|
||||||
`(map-put doom-auto-minor-mode-alist ,match ',mode))
|
`(map-put doom-auto-minor-mode-alist ,match ',mode))
|
||||||
(t (user-error "associate! invalid rules for mode [%s] (modes %s) (match %s) (files %s)"
|
(t (user-error "associate! invalid rules for mode [%s] (modes %s) (match %s) (files %s)"
|
||||||
|
@ -195,7 +195,7 @@ DEFAULT is non-nil, set the default mode-line for all buffers."
|
|||||||
(setf (if default
|
(setf (if default
|
||||||
(default-value 'mode-line-format)
|
(default-value 'mode-line-format)
|
||||||
(buffer-local-value 'mode-line-format (current-buffer)))
|
(buffer-local-value 'mode-line-format (current-buffer)))
|
||||||
modeline)))
|
(list "%e" modeline))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -45,8 +45,8 @@
|
|||||||
:pre-handlers '(:rem sp-ruby-prehandler)
|
:pre-handlers '(:rem sp-ruby-prehandler)
|
||||||
:post-handlers '(:rem sp-ruby-posthandler))
|
:post-handlers '(:rem sp-ruby-posthandler))
|
||||||
;; sp's default rules for these modes are obnoxious, so disable them
|
;; sp's default rules for these modes are obnoxious, so disable them
|
||||||
(provide 'smartparens-latex)
|
|
||||||
(provide 'smartparens-elixir)
|
(provide 'smartparens-elixir)
|
||||||
|
(provide 'smartparens-latex)
|
||||||
(provide 'smartparens-lua)
|
(provide 'smartparens-lua)
|
||||||
|
|
||||||
;; Expand {|} => { | }
|
;; Expand {|} => { | }
|
||||||
|
Reference in New Issue
Block a user