Clean up
This commit is contained in:
parent
714738bfc8
commit
50d6de0600
8 changed files with 39 additions and 71 deletions
|
@ -92,7 +92,7 @@ enable multiple minor modes for the same regexp.")
|
|||
|
||||
;; (global-whitespace-mode 1) ; Show whitespace
|
||||
(global-font-lock-mode t) ; Enable syntax highlighting for older emacs
|
||||
(global-auto-revert-mode -1) ; revert buffers for changed files
|
||||
(global-auto-revert-mode 1) ; revert buffers for changed files
|
||||
(electric-indent-mode -1)
|
||||
|
||||
;; window config undo/redo
|
||||
|
@ -105,12 +105,14 @@ enable multiple minor modes for the same regexp.")
|
|||
|
||||
(use-package undo-tree
|
||||
:defer t
|
||||
:diminish undo-tree-mode
|
||||
:config
|
||||
;; Shut up undo-tree's constant complaining: http://youtu.be/Z6woIRLnbmE
|
||||
(defadvice undo-tree-load-history-hook (around undo-tree-load-history-shut-up activate)
|
||||
(shut-up! ad-do-it))
|
||||
(defadvice undo-tree-save-history-hook (around undo-tree-save-history-shut-up activate)
|
||||
(shut-up! ad-do-it)))
|
||||
;; (defadvice undo-tree-load-history-hook (around undo-tree-load-history-shut-up activate)
|
||||
;; (shut-up! ad-do-it))
|
||||
;; (defadvice undo-tree-save-history-hook (around undo-tree-save-history-shut-up activate)
|
||||
;; (shut-up! ad-do-it))
|
||||
)
|
||||
|
||||
(use-package avy
|
||||
:commands (avy-goto-char-2 avy-goto-line)
|
||||
|
@ -168,8 +170,7 @@ enable multiple minor modes for the same regexp.")
|
|||
:diminish smartparens-mode
|
||||
:functions sp-insert-pair
|
||||
:config
|
||||
(setq blink-matching-paren t
|
||||
sp-autowrap-region nil ; let evil-surround handle this
|
||||
(setq sp-autowrap-region nil ; let evil-surround handle this
|
||||
sp-highlight-pair-overlay nil
|
||||
sp-autoescape-string-quote nil
|
||||
sp-show-pair-delay 0)
|
||||
|
@ -216,7 +217,7 @@ enable multiple minor modes for the same regexp.")
|
|||
|
||||
(use-package smex
|
||||
:commands (smex smex-major-mode-commands smex-initialize smex-update)
|
||||
:init (setq smex-save-file (! (concat narf-temp-dir "smex-items")))
|
||||
:init (setq smex-save-file (concat narf-temp-dir "smex-items"))
|
||||
:config (smex-initialize)
|
||||
;; Hook up smex to auto-update, rather than update on every run
|
||||
(defun smex-update-after-load (unused)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue