Add undo-tree and fix editing module
This commit is contained in:
parent
519634beba
commit
85c71c0046
@ -20,9 +20,10 @@
|
|||||||
'(rainbow-mode
|
'(rainbow-mode
|
||||||
whole-line-or-region
|
whole-line-or-region
|
||||||
duplicate-thing
|
duplicate-thing
|
||||||
volatile-highlights
|
|
||||||
expand-region
|
expand-region
|
||||||
fill-column-indicator)
|
fill-column-indicator
|
||||||
|
volatile-highlights
|
||||||
|
undo-tree)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -61,6 +62,13 @@
|
|||||||
(use-package volatile-highlights)
|
(use-package volatile-highlights)
|
||||||
(volatile-highlights-mode t)
|
(volatile-highlights-mode t)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Undo tree. To undo "C-\", to redo "C-_", undo tree "C-x u".
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package undo-tree)
|
||||||
|
(global-undo-tree-mode)
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Use UTF-8.
|
;; Use UTF-8.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
@ -86,10 +94,15 @@
|
|||||||
;; Formatting
|
;; Formatting
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
(setq-default tab-width 8) ;; Tab width
|
(setq-default
|
||||||
(setq-default indent-tabs-mode nil) ;; No tabs
|
;; Indentation size - applies even when indent-tabs-mode is nil.
|
||||||
(setq-default fill-column 79) ;; Line width
|
tab-width 8
|
||||||
(setq-default whitespace-line-column fill-column) ;; For whitespace mode
|
;; Do not use tab characters for indentation.
|
||||||
|
indent-tabs-mode nil
|
||||||
|
;; Standard fill-column width - last character is for end of line glyph.
|
||||||
|
fill-column 79
|
||||||
|
;; Highlight lines that are too long in whitespace mode.
|
||||||
|
whitespace-line-column fill-column)
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Commands.
|
;; Commands.
|
||||||
@ -198,7 +211,7 @@
|
|||||||
(yank-advised-indent-function (region-beginning) (region-end)))))
|
(yank-advised-indent-function (region-beginning) (region-end)))))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Additional key-bindingds.
|
;; Additional key-bindings.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
;; Toggle whitespace mode.
|
;; Toggle whitespace mode.
|
||||||
|
Reference in New Issue
Block a user