Ask HN: Emacs Users, what's in your .emacs file? (2017)
As a continuation of the last time this was posted:
https://news.ycombinator.com/item?id=1654164
https://github.com/itamarst/dotfiles/blob/master/.spacemacs#... and https://github.com/itamarst/dotfiles/blob/master/.spacemacs#... are most my customizations.
;; undotree
(defun undo-tree-visualizer-toggle ()
(interactive)
(if (get-buffer undo-tree-visualizer-buffer-name)
(undo-tree-visualizer-quit)
(undo-tree-visualize)))
;; Represent undo-history as an actual tree (visualize with C-x u)
(setq undo-tree-mode-lighter "")
(require 'undo-tree)
(global-undo-tree-mode)
(global-set-key [f8] 'undo-tree-visualizer-toggle)To the curious: don't hesitate to ask.
To the critical: don't hesitate to point out improvements!
It's much better since I have learned about use-package.