From c05b16ee6f5ae33d3773463a2907ba3aefe75b26 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 3 May 2018 15:59:54 +0200 Subject: [PATCH] Minor refactor/reformatting --- modules/feature/evil/config.el | 2 +- modules/feature/lookup/config.el | 4 +++- modules/ui/doom-modeline/config.el | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/feature/evil/config.el b/modules/feature/evil/config.el index a4da7d186..ce6a9a437 100644 --- a/modules/feature/evil/config.el +++ b/modules/feature/evil/config.el @@ -121,7 +121,7 @@ (advice-add #'evil-ex-replace-special-filenames :override #'+evil*resolve-vim-path) ;; make `try-expand-dabbrev' from `hippie-expand' work in minibuffer - ;; @see `he-dabbrev-beg', so we need re-define syntax for '/' + ;; @see `he-dabbrev-beg', so we need to redefine syntax for '/' (defun +evil*fix-dabbrev-in-minibuffer () (set-syntax-table (let* ((table (make-syntax-table))) (modify-syntax-entry ?/ "." table) diff --git a/modules/feature/lookup/config.el b/modules/feature/lookup/config.el index c22e34d40..7e4a8fa46 100644 --- a/modules/feature/lookup/config.el +++ b/modules/feature/lookup/config.el @@ -108,7 +108,9 @@ properties: ;; xref ;; -(after! xref +(def-package! xref + :commands (xref-backend-identifier-at-point xref-find-definitions xref-find-references) + :config ;; By default, `etags--xref-backend' is the default xref backend. No need. ;; We'll set these up ourselves in other modules. (setq-default xref-backend-functions '(t)) diff --git a/modules/ui/doom-modeline/config.el b/modules/ui/doom-modeline/config.el index 42e5758ae..f4557afc3 100644 --- a/modules/ui/doom-modeline/config.el +++ b/modules/ui/doom-modeline/config.el @@ -428,6 +428,7 @@ directory, the file name, and its state (modified, read-only or non-existent)." (defvar-local +doom-modeline--flycheck nil) (add-hook 'flycheck-status-changed-functions #'+doom-modeline|update-flycheck-segment) (add-hook 'flycheck-mode-hook #'+doom-modeline|update-flycheck-segment) + (defun +doom-modeline|update-flycheck-segment (&optional status) (setq +doom-modeline--flycheck (pcase status @@ -480,7 +481,7 @@ lines are selected, or the NxM dimensions of a block selection." (let ((cols (abs (- (doom-column end) (doom-column beg))))) (format "%dx%dB" lines cols))) - ((eq 'line evil-visual-selection) + ((eq evil-visual-selection 'line) (format "%dL" lines)) ((> lines 1) (format "%dC %dL" (- end beg) lines))