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:
Henrik Lissner 2019-10-04 22:07:15 -04:00
parent 4761a7635a
commit 5b5dbe1c47
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 4 deletions

View file

@ -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.")

View file

@ -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))