editor/god: minor refactor
+ god-local-mode is autoloaded by the package + Use add-hook when add-hook! is unnecessary + Move autoload/god.el to autoload.el
This commit is contained in:
parent
4761a7635a
commit
5b5dbe1c47
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
;; editor/god/autoload/god.el -*- lexical-binding: t; -*-
|
;;; editor/god/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar +god-default-color (face-background 'cursor)
|
(defvar +god-default-color (face-background 'cursor)
|
||||||
"Default cursor and bar color.")
|
"Default cursor and bar color.")
|
|
@ -1,7 +1,6 @@
|
||||||
;;; editor/god/config.el -*- lexical-binding: t; -*-
|
;;; editor/god/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(use-package! god-mode
|
(use-package! god-mode
|
||||||
:commands god-local-mode
|
|
||||||
:hook (doom-after-init-modules . god-mode-all)
|
:hook (doom-after-init-modules . god-mode-all)
|
||||||
:config
|
:config
|
||||||
(pushnew! god-exempt-major-modes
|
(pushnew! god-exempt-major-modes
|
||||||
|
@ -25,5 +24,5 @@
|
||||||
'sly-db-mode
|
'sly-db-mode
|
||||||
'wdired-mode)
|
'wdired-mode)
|
||||||
|
|
||||||
(add-hook! 'post-command-hook #'+god--configure-cursor-and-modeline-h)
|
(add-hook 'post-command-hook #'+god--configure-cursor-and-modeline-h)
|
||||||
(add-hook! 'overwrite-mode-hook #'+god--toggle-on-overwrite-h))
|
(add-hook 'overwrite-mode-hook #'+god--toggle-on-overwrite-h))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue