Skip to content

Comment on Ask HN: Emacs Users, what's in your .emacs file? (2017)

Comments

For me it's a simple undotree toggle:

  ;; 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)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.