From 1c05773c390b1e410ad96f5d59136a3b73530350 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 11 Sep 2019 23:32:46 -0400 Subject: [PATCH] General, minor refactors & comment revision --- modules/README.org | 2 +- modules/editor/multiple-cursors/config.el | 6 +----- modules/lang/latex/config.el | 6 ++++-- modules/lang/org/config.el | 3 ++- modules/ui/modeline/config.el | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/modules/README.org b/modules/README.org index 5daf3c053..2b329620a 100644 --- a/modules/README.org +++ b/modules/README.org @@ -42,7 +42,7 @@ Aesthetic modules that affect the Emacs interface or user experience. + [[file:ui/unicode/README.org][unicode]]: + vc-gutter: + vi-tilde-fringe: -+ [[file:ui/window-select/README.org][window-select]]: ++ [[file:ui/window-select/README.org][window-select]] =+switch-window +numbers=: + [[file:ui/workspaces/README.org][workspaces]]: Isolated workspaces * :editor diff --git a/modules/editor/multiple-cursors/config.el b/modules/editor/multiple-cursors/config.el index 9ceb9e394..362705c94 100644 --- a/modules/editor/multiple-cursors/config.el +++ b/modules/editor/multiple-cursors/config.el @@ -59,11 +59,7 @@ ;; Forward declare these so that ex completion and evil-mc support is ;; recognized before the autoloaded functions are loaded. (evil-add-command-properties '+evil:align :evil-mc t) - (evil-set-command-properties '+multiple-cursors:evil-mc - :move-point nil - :ex-arg 'global-match - :ex-bang t - :evil-mc t)) + (evil-add-command-properties '+multiple-cursors:evil-mc :evil-mc t)) (after! multiple-cursors-core diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index 8fae86080..be347030c 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -66,10 +66,10 @@ If no viewers are found, `latex-preview-pane' is used.") (cl-find-if #'byte-code-function-p find-file-hook) 'local)) (add-hook 'latex-mode-local-vars-hook #'flyspell-mode!) - ;; All these excess pairs dramatically slow down typing in latex buffers, so - ;; we remove them. Let snippets do their job. (after! smartparens-latex (let ((modes '(tex-mode plain-tex-mode latex-mode LaTeX-mode))) + ;; All these excess pairs dramatically slow down typing in latex buffers, + ;; so we remove them. Let snippets do their job. (dolist (open '("\\left(" "\\left[" "\\left\\{" "\\left|" "\\bigl(" "\\biggl(" "\\Bigl(" "\\Biggl(" "\\bigl[" "\\biggl[" "\\Bigl[" "\\Biggl[" "\\bigl\\{" "\\biggl\\{" @@ -77,6 +77,8 @@ If no viewers are found, `latex-preview-pane' is used.") "\\lfloor" "\\lceil" "\\langle" "\\lVert" "\\lvert" "`")) (sp-local-pair modes open nil :actions :rem)) + ;; And tweak these so that users can decide whether they want use latex + ;; quotes or not, via `+latex-enable-plain-double-quotes' (sp-local-pair modes "``" nil :unless '(:add sp-in-math-p))))) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 1c7456997..920a6aedf 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -97,7 +97,8 @@ (advice-add #'org-return-indent :after #'+org-fix-newline-and-indent-in-src-blocks-a) ;; `org-babel-get-header' was removed from org in 9.0. Quite a few babel - ;; plugins use it, so until those plugins update, this polyfill will do: + ;; plugins use it (like ob-spice), so until those plugins update, this + ;; polyfill will do: (defun org-babel-get-header (params key &optional others) (cl-loop with fn = (if others #'not #'identity) for p in params diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index 43d35bcdf..f696569cd 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -72,4 +72,4 @@ (use-package! evil-anzu :when (featurep! :editor evil) - :after-call (evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight)) + :after-call evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight)