emacs: add nlinum and git-gutter
This commit is contained in:
parent
3113a139fd
commit
9ad45bc55b
|
@ -77,6 +77,8 @@
|
|||
which-key
|
||||
link-hint
|
||||
darkroom
|
||||
nlinum
|
||||
git-gutter
|
||||
|
||||
# writing-packages
|
||||
markdown-mode
|
||||
|
|
|
@ -284,6 +284,19 @@
|
|||
:ensure t
|
||||
:config (zone-when-idle (* 60 60 2))) ; 2 hours
|
||||
|
||||
;; git-gutter needs obsolete `global-linum-mode', `nlinum' provides
|
||||
;; this until updated
|
||||
(use-package nlinum
|
||||
:ensure t)
|
||||
|
||||
(use-package git-gutter
|
||||
:ensure t
|
||||
:after nlinum
|
||||
:config (global-git-gutter-mode +1)
|
||||
:custom
|
||||
(git-gutter:visual-line t)
|
||||
(git-gutter:update-interval 0.5))
|
||||
|
||||
(setq org-directory "~/Org"
|
||||
org-default-notes-file (expand-file-name "notes.org" org-directory)
|
||||
org-pretty-entities-include-sub-superscripts t
|
||||
|
|
|
@ -342,6 +342,22 @@
|
|||
:ensure t
|
||||
:config (zone-when-idle (* 60 60 2))) ; 2 hours
|
||||
#+end_src
|
||||
|
||||
** Git-gutter
|
||||
#+begin_src emacs-lisp
|
||||
;; git-gutter needs obsolete `global-linum-mode', `nlinum' provides
|
||||
;; this until updated
|
||||
(use-package nlinum
|
||||
:ensure t)
|
||||
|
||||
(use-package git-gutter
|
||||
:ensure t
|
||||
:after nlinum
|
||||
:config (global-git-gutter-mode +1)
|
||||
:custom
|
||||
(git-gutter:visual-line t)
|
||||
(git-gutter:update-interval 0.5))
|
||||
#+end_src
|
||||
* Org-mode
|
||||
For reference information, see [[https://orgmode.com][Org-mode website]]
|
||||
|
||||
|
|
Loading…
Reference in a new issue