Correct last inline hook defuns

See a3e262c7 for rationale
This commit is contained in:
Henrik Lissner 2019-07-28 14:52:59 +02:00
parent a354bba261
commit 19ecf8e46a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
25 changed files with 39 additions and 39 deletions

View file

@ -37,7 +37,7 @@
(add-hook '+doom-dashboard-mode-hook #'doom-modeline-set-project-modeline)
(add-hook 'magit-mode-hook
(add-hook! 'magit-mode-hook
(defun +modeline-hide-in-non-status-buffer-h ()
"Show minimal modeline in magit-status buffer, no modeline elsewhere."
(if (eq major-mode 'magit-status-mode)

View file

@ -45,7 +45,7 @@
;; The cursor always sits at bol. `+neotree--fix-cursor-h' and
;; `+neotree--indent-cursor-a' change that behavior so that the cursor is
;; always on the first non-blank character on the line, in the neo buffer.
(add-hook 'neo-enter-hook
(add-hook! 'neo-enter-hook
(defun +neotree-fix-cursor-h (&rest _)
(with-current-buffer neo-global--buffer
(+neotree*indent-cursor))))

View file

@ -8,7 +8,7 @@
centaur-tabs-set-modified-marker t)
:config
(add-hook 'centaur-tabs-mode-hook
(add-hook! 'centaur-tabs-mode-hook
(defun +tabbar-init-frames-h ()
(dolist (frame (frame-list))
(if (not centaur-tabs-mode)

View file

@ -1,7 +1,7 @@
;;; ui/unicode/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(add-hook 'doom-init-ui-hook
(add-hook! 'doom-init-ui-hook
(defun +unicode-init-fonts-h ()
"Set up `unicode-fonts' to eventually run; accomodating the daemon, if
necessary."

View file

@ -176,7 +176,7 @@ stored in `persp-save-dir'.")
;; Fix #1017: stop session persistence from restoring a broken posframe
(after! posframe
(add-hook 'persp-after-load-state-functions
(add-hook! 'persp-after-load-state-functions
(defun +workspaces-delete-all-posframes-h (&rest _)
(posframe-delete-all))))