From f86a48087c45f7b5d7a05d1485e699a05c92caa0 Mon Sep 17 00:00:00 2001 From: Kashish Sharma Date: Sat, 8 Sep 2018 22:43:34 +0530 Subject: [PATCH] Migrate undo-tree to use-package First use of :diminish (and diminish.el) and conditional loading via :if --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 477ab05..270e4f7 100644 --- a/init.el +++ b/init.el @@ -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)