Migrate undo-tree to use-package

First use of :diminish (and diminish.el) and conditional loading via :if
This commit is contained in:
Kashish Sharma 2018-09-08 22:43:34 +05:30
parent eb580c8666
commit f86a48087c
1 changed files with 4 additions and 3 deletions

View File

@ -328,9 +328,10 @@ and eval it."
;; (ispell-change-dictionary "en")
(setq ispell-dictionary "en")
;; Comment out if using Evil, uncomment if not
(require 'undo-tree)
(global-undo-tree-mode)
(use-package undo-tree
:if (not (featurep 'evil))
:diminish undo-tree-mode
:init (global-undo-tree-mode))
(with-eval-after-load 'text-mode
(define-key text-mode-map (kbd "M-p") 'org-drag-line-backward)