Add undo-tree package
This commit is contained in:
parent
81c60f404d
commit
affdeb52fe
4 changed files with 18 additions and 2 deletions
2
init.el
2
init.el
|
|
@ -64,7 +64,7 @@
|
|||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
'(helpful lsp-haskell dashboard fsharp-mode dash-at-point racer racer-mode flycheck-rust rust-mode haskell-mode dune which-key erlang gitignore-mode yaml-mode nginx-mode ansible terraform-mode dockerfile-mode reason-mode merlin tuareg clj-refactor cider clojure-mode elixir-mode js2-mode web-mode enh-ruby-mode ruby-end rspec-mode planet-theme flatui-theme base16-theme smart-mode-line lsp-ui lsp-mode deft counsel-projectile flycheck company yasnippet-snippets yasnippet visual-regexp column-enforce-mode rainbow-mode rainbow-delimiters magit hydra counsel keyfreq exec-path-from-shell buffer-move use-package))
|
||||
'(undo-tree helpful lsp-haskell dashboard fsharp-mode dash-at-point racer racer-mode flycheck-rust rust-mode haskell-mode dune which-key erlang gitignore-mode yaml-mode nginx-mode ansible terraform-mode dockerfile-mode reason-mode merlin tuareg clj-refactor cider clojure-mode elixir-mode js2-mode web-mode enh-ruby-mode ruby-end rspec-mode planet-theme flatui-theme base16-theme smart-mode-line lsp-ui lsp-mode deft counsel-projectile flycheck company yasnippet-snippets yasnippet visual-regexp column-enforce-mode rainbow-mode rainbow-delimiters magit hydra counsel keyfreq exec-path-from-shell buffer-move use-package))
|
||||
'(safe-local-variable-values
|
||||
'((haskell-process-use-ghci . t)
|
||||
(haskell-indent-spaces . 4))))
|
||||
|
|
|
|||
12
pkg/base.el
12
pkg/base.el
|
|
@ -155,6 +155,18 @@
|
|||
(keyfreq-mode t)
|
||||
(keyfreq-autosave-mode t)
|
||||
|
||||
;;;;;;;;;;;;;;;;; Use more advanced undo options
|
||||
(use-package undo-tree
|
||||
:defer t
|
||||
:ensure t
|
||||
:config (setq-default
|
||||
;; Show diff
|
||||
undo-tree-visualizer-diff t
|
||||
;; Show timestamps
|
||||
undo-tree-visualizer-timestamps t))
|
||||
|
||||
(global-undo-tree-mode t)
|
||||
|
||||
;;;;;;;;;;;;;;;;; Show hints about key combinations
|
||||
(use-package which-key
|
||||
:defer t
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ _d_: Deft _c_: Invalidate cache
|
|||
^^^^^^^^-----------------------------------------------------------------------
|
||||
_c_: Comment line _y_: Yasnippet
|
||||
_r_: Regex replace _m_: Company
|
||||
_i_: Indent region
|
||||
_i_: Indent region _u_: Undo tree
|
||||
_a_: Align regexp
|
||||
_e_: Eval region
|
||||
_s_: Swiper
|
||||
|
|
@ -57,6 +57,7 @@ _s_: Swiper
|
|||
("e" eval-region)
|
||||
("s" swiper)
|
||||
|
||||
("u" undo-tree-visualize)
|
||||
("y" company-yasnippet)
|
||||
("m" company-complete))
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,11 @@
|
|||
(defun set-font-to-screen ()
|
||||
"Automatically set font size to suit the monitor."
|
||||
(interactive)
|
||||
;; If display is set to emulate FullHD resultion or less, make the font
|
||||
;; smaller.
|
||||
(if (>= 1080 (x-display-pixel-height))
|
||||
(set-font "Hack" 13)
|
||||
;; Else, set to default size.
|
||||
(set-font "Hack" 16)))
|
||||
|
||||
;; Do it automatically on startup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue