File tree 3 files changed +21
-8
lines changed
3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 24
24
* Replace prelude-go backend with ` lsp ` instead of unmaintained tools.
25
25
* Use ` rust-analyzer ` as language server for prelude-rust and provide nicer syntax highlighting with ` tree-sitter ` .
26
26
* Use ` js2-mode ` for Node.js specific ` .cjs ` and ` .mjs ` extensions.
27
+ * Add ` prelude-undo-tree ` custom variable: allows user disable
28
+ undo-tree integration. Enabled by default to maintain backward-compatibility.
27
29
28
30
### Bugs fixed
29
31
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ or desktop environments that make heavy use of them."
66
66
:type 'boolean
67
67
:group 'prelude )
68
68
69
+ (defcustom prelude-undo-tree t
70
+ " Non-nil values enable Prelude's undo-tree integration."
71
+ :type 'boolean
72
+ :group 'prelude )
73
+
69
74
(defcustom prelude-clean-whitespace-on-save t
70
75
" Cleanup whitespace from file before it's saved.
71
76
Will only occur if `prelude-whitespace' is also enabled."
Original file line number Diff line number Diff line change @@ -358,14 +358,20 @@ indent yanked text (with prefix arg don't indent)."
358
358
; ; enable Prelude's keybindings
359
359
(prelude-mode t )
360
360
361
- ; ; supercharge your undo/redo with undo-tree
362
- (require 'undo-tree )
363
- ; ; autosave the undo-tree history
364
- (setq undo-tree-history-directory-alist
365
- `((" .*" . , temporary-file-directory )))
366
- (setq undo-tree-auto-save-history t )
367
- (global-undo-tree-mode)
368
- (diminish 'undo-tree-mode )
361
+ (defun prelude-maybe-enable-undo-tree ()
362
+ " Enable `undo-tree' if `prelude-undo-tree' is not nil."
363
+ (when prelude-undo-tree
364
+ ; ; supercharge your undo/redo with undo-tree
365
+ (require 'undo-tree )
366
+ ; ; autosave the undo-tree history
367
+ (setq undo-tree-history-directory-alist
368
+ `((" .*" . , temporary-file-directory )))
369
+ (setq undo-tree-auto-save-history t )
370
+ (global-undo-tree-mode)
371
+ (diminish 'undo-tree-mode )))
372
+
373
+
374
+ (prelude-maybe-enable-undo-tree)
369
375
370
376
; ; enable winner-mode to manage window configurations
371
377
(winner-mode +1 )
You can’t perform that action at this time.
0 commit comments