Disable nlinum and cleanup helm
This commit is contained in:
parent
6926fe757f
commit
dc0f0fcec0
2 changed files with 3 additions and 6 deletions
|
@ -6,7 +6,6 @@
|
||||||
helm-show-kill-ring
|
helm-show-kill-ring
|
||||||
helm-bookmarks
|
helm-bookmarks
|
||||||
helm-wg
|
helm-wg
|
||||||
helm-ag
|
|
||||||
helm-alive-p
|
helm-alive-p
|
||||||
helm-attrset)
|
helm-attrset)
|
||||||
:init
|
:init
|
||||||
|
@ -66,7 +65,9 @@
|
||||||
helm-org-capture-templates))
|
helm-org-capture-templates))
|
||||||
|
|
||||||
(use-package helm-files
|
(use-package helm-files
|
||||||
:commands helm-recentf
|
:commands (helm-recentf
|
||||||
|
helm-buffers
|
||||||
|
helm-buffers-list)
|
||||||
:config
|
:config
|
||||||
(defun helm-recentf ()
|
(defun helm-recentf ()
|
||||||
"Reconfigured `helm-recentf' to use `helm', instead of `helm-other-buffer'"
|
"Reconfigured `helm-recentf' to use `helm', instead of `helm-other-buffer'"
|
||||||
|
@ -129,7 +130,6 @@
|
||||||
(require 'projectile))
|
(require 'projectile))
|
||||||
|
|
||||||
;; (use-package helm-c-yasnippet :commands helm-yas-visit-snippet-file)
|
;; (use-package helm-c-yasnippet :commands helm-yas-visit-snippet-file)
|
||||||
(use-package helm-buffers :commands helm-buffers-list)
|
|
||||||
(use-package helm-semantic :commands helm-semantic-or-imenu)
|
(use-package helm-semantic :commands helm-semantic-or-imenu)
|
||||||
(use-package helm-elisp :commands helm-apropos)
|
(use-package helm-elisp :commands helm-apropos)
|
||||||
(use-package helm-command :commands helm-M-x)
|
(use-package helm-command :commands helm-M-x)
|
||||||
|
|
|
@ -95,9 +95,6 @@
|
||||||
(remove-hook 'post-command-hook 'narf|nlinum-hl-line)
|
(remove-hook 'post-command-hook 'narf|nlinum-hl-line)
|
||||||
(narf|nlinum-unhl-line))
|
(narf|nlinum-unhl-line))
|
||||||
|
|
||||||
(add-hook! text-mode 'narf|nlinum-enable)
|
|
||||||
(add-hook! prog-mode 'narf|nlinum-enable)
|
|
||||||
(add-hook! org-mode 'narf|nlinum-disable)
|
|
||||||
;; Preset width nlinum
|
;; Preset width nlinum
|
||||||
(add-hook! nlinum-mode
|
(add-hook! nlinum-mode
|
||||||
(setq nlinum--width (length (number-to-string (count-lines (point-min) (point-max)))))))
|
(setq nlinum--width (length (number-to-string (count-lines (point-min) (point-max)))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue