Minor refactors & comment revision across the board

This commit is contained in:
Henrik Lissner 2019-12-31 19:17:55 -05:00
parent d1b597fde4
commit 445ba1a46d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 20 additions and 16 deletions

View file

@ -24,7 +24,7 @@
(setq avy-all-windows nil
avy-all-windows-alt t
avy-background t
;; the unpredictability of this makes it a poor default
;; the unpredictability of this (when enabled) makes it a poor default
avy-single-candidate-jump nil)
@ -78,7 +78,7 @@
sp-navigate-consider-sgml-tags nil)))
;; Autopair quotes more conservatively; if I'm next to a word/before another
;; quote, I likely don't want to open a new pair.
;; quote, I don't want to open a new pair or it would unbalance them.
(let ((unless-list '(sp-point-before-word-p
sp-point-after-word-p
sp-point-before-same-p)))
@ -353,7 +353,7 @@
"t" #'load-theme
;; replaces `finder-by-keyword' b/c not useful
"p" #'doom/help-packages
;; replaces `describe-package' b/c redundant w/ `doom/describe-package'
;; replaces `describe-package' b/c redundant w/ `doom/help-packages'
"P" #'find-library)
(after! which-key

View file

@ -238,7 +238,10 @@ and complains if a module is loaded too early (during startup)."
(list doom-leader-key doom-localleader-key
doom-leader-alt-key doom-localleader-alt-key))
;; Load the rest
;; HACK Do this ourselves because evil-collection break's `eval-after-load' load
;; order by loading their target plugin before applying keys. It'd be too
;; much work to accommodate this eveywhere we want to bind our own evil
;; keybinds.
(dolist (mode evil-collection-mode-list)
(dolist (req (or (cdr-safe mode) (list mode)))
(with-eval-after-load req

View file

@ -39,10 +39,9 @@
"Collapse an expanded directory node or go to the parent node."
(interactive)
(when-let (node (neo-buffer--get-filename-current-line))
(if (file-directory-p node)
(if (neo-buffer--expanded-node-p node)
(+neotree/collapse)
(neotree-select-up-node))
(if (and (file-directory-p node)
(neo-buffer--expanded-node-p node))
(+neotree/collapse)
(neotree-select-up-node))))
;;;###autoload