mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 15:38:29 +00:00
Added undo-tree
This commit is contained in:
parent
58a4a20c9b
commit
8d3f424050
6
init.el
6
init.el
@ -92,7 +92,8 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
paredit ; minor mode for editing parentheses
|
paredit ; minor mode for editing parentheses
|
||||||
powerline ; Rewrite of Powerline
|
powerline ; Rewrite of Powerline
|
||||||
pretty-lambdada ; the word `lambda' as the Greek letter.
|
pretty-lambdada ; the word `lambda' as the Greek letter.
|
||||||
smex)) ; M-x interface with Ido-style fuzzy matching.
|
smex ; M-x interface with Ido-style fuzzy matching.
|
||||||
|
undo-tree)) ; Treat undo history as a tree
|
||||||
(upgrade-or-install-package package))
|
(upgrade-or-install-package package))
|
||||||
;; This package is only relevant for Mac OS X.
|
;; This package is only relevant for Mac OS X.
|
||||||
(when (memq window-system '(mac ns))
|
(when (memq window-system '(mac ns))
|
||||||
@ -173,7 +174,8 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
column-number-mode ; Show column number in mode line.
|
column-number-mode ; Show column number in mode line.
|
||||||
delete-selection-mode ; Replace selected text.
|
delete-selection-mode ; Replace selected text.
|
||||||
recentf-mode ; Recently opened files.
|
recentf-mode ; Recently opened files.
|
||||||
show-paren-mode)) ; Highlight matching parentheses.
|
show-paren-mode ; Highlight matching parentheses.
|
||||||
|
global-undo-tree-mode)) ; Undo as a tree.
|
||||||
(funcall mode 1))
|
(funcall mode 1))
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
|
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
|
||||||
|
14
init.org
14
init.org
@ -163,7 +163,8 @@
|
|||||||
paredit ; minor mode for editing parentheses
|
paredit ; minor mode for editing parentheses
|
||||||
powerline ; Rewrite of Powerline
|
powerline ; Rewrite of Powerline
|
||||||
pretty-lambdada ; the word `lambda' as the Greek letter.
|
pretty-lambdada ; the word `lambda' as the Greek letter.
|
||||||
smex)) ; M-x interface with Ido-style fuzzy matching.
|
smex ; M-x interface with Ido-style fuzzy matching.
|
||||||
|
undo-tree)) ; Treat undo history as a tree
|
||||||
(upgrade-or-install-package package))
|
(upgrade-or-install-package package))
|
||||||
;; This package is only relevant for Mac OS X.
|
;; This package is only relevant for Mac OS X.
|
||||||
(when (memq window-system '(mac ns))
|
(when (memq window-system '(mac ns))
|
||||||
@ -326,7 +327,8 @@
|
|||||||
column-number-mode ; Show column number in mode line.
|
column-number-mode ; Show column number in mode line.
|
||||||
delete-selection-mode ; Replace selected text.
|
delete-selection-mode ; Replace selected text.
|
||||||
recentf-mode ; Recently opened files.
|
recentf-mode ; Recently opened files.
|
||||||
show-paren-mode)) ; Highlight matching parentheses.
|
show-paren-mode ; Highlight matching parentheses.
|
||||||
|
global-undo-tree-mode)) ; Undo as a tree.
|
||||||
(funcall mode 1))
|
(funcall mode 1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@ -352,9 +354,7 @@
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
[[https://github.com/milkypostman/powerline][Powerline]] is an extension to customize the mode line. This is modified
|
[[https://github.com/milkypostman/powerline][Powerline]] is an extension to customize the mode line. This is modified
|
||||||
version =powerline-nano-theme=. This is what it looks like:
|
version =powerline-nano-theme=.
|
||||||
|
|
||||||
[[./powerline.png]]
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle yes
|
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||||
(setq-default
|
(setq-default
|
||||||
@ -382,6 +382,10 @@
|
|||||||
(powerline-render rhs))))))
|
(powerline-render rhs))))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
This is what it looks like:
|
||||||
|
|
||||||
|
[[./powerline.png]]
|
||||||
|
|
||||||
** Ido
|
** Ido
|
||||||
|
|
||||||
Interactive do (or =ido-mode=) changes the way you switch buffers and
|
Interactive do (or =ido-mode=) changes the way you switch buffers and
|
||||||
|
Loading…
Reference in New Issue
Block a user