mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Use delegate function
As suggested by Henrik I changed it to use a delegate function, which reduces code duplication and makes things cleaner
This commit is contained in:
@ -266,10 +266,8 @@
|
||||
;;; <leader> t --- toggle
|
||||
(:prefix-map ("t" . "toggle")
|
||||
:desc "Big mode" "b" #'doom-big-font-mode
|
||||
(:when (and (featurep! :ui fill-column) EMACS27+)
|
||||
:desc "Fill Column Indicator" "c" #'display-fill-column-indicator-mode)
|
||||
(:when (and (featurep! :ui fill-column) (not EMACS27+))
|
||||
:desc "Fill Column Indicator" "c" #'hl-fill-column-mode)
|
||||
(:when (featurep! :ui fill-column)
|
||||
:desc "Fill Column Indicator" "c" #'+fill-column-enable-h)
|
||||
:desc "Flymake" "f" #'flymake-mode
|
||||
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
||||
:desc "Indent style" "I" #'doom/toggle-indent-style
|
||||
|
@ -650,10 +650,8 @@
|
||||
;;; <leader> t --- toggle
|
||||
(:prefix-map ("t" . "toggle")
|
||||
:desc "Big mode" "b" #'doom-big-font-mode
|
||||
(:when (and (featurep! :ui fill-column) EMACS27+)
|
||||
:desc "Fill Column Indicator" "c" #'display-fill-column-indicator-mode)
|
||||
(:when (and (featurep! :ui fill-column) (not EMACS27+))
|
||||
:desc "Fill Column Indicator" "c" #'hl-fill-column-mode)
|
||||
(:when (featurep! :ui fill-column)
|
||||
:desc "Fill Column Indicator" "c" #'+fill-column-enable-h)
|
||||
:desc "Flymake" "f" #'flymake-mode
|
||||
(:when (featurep! :checkers syntax)
|
||||
:desc "Flycheck" "f" #'flycheck-mode)
|
||||
|
Reference in New Issue
Block a user