Add undo-tree

This commit is contained in:
Alexander Rosenberg 2024-03-20 02:44:57 -07:00
parent 04f3b0c927
commit 00b28d9f45
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

19
init.el
View File

@ -187,13 +187,19 @@
(require 'mozc nil t) (require 'mozc nil t)
(setq default-input-method "japanese-mozc") (setq default-input-method "japanese-mozc")
;; undo-tree
(use-package undo-tree
:defer nil
:config
(global-undo-tree-mode))
;; evil ;; evil
(use-package evil (use-package evil
:init :init
(setq evil-want-integration t (setq evil-want-integration t
evil-want-C-d-scroll nil evil-want-C-d-scroll nil
evil-want-keybinding nil evil-want-keybinding nil
evil-undo-system 'undo-redo evil-undo-system 'undo-tree
evil-search-module 'isearch evil-search-module 'isearch
evil-respect-visual-line-mode t) evil-respect-visual-line-mode t)
:config :config
@ -944,15 +950,16 @@ argument."
(use-package fricas (use-package fricas
:ensure nil :ensure nil
:custom :custom
(fricas-run-command "fricas -nox") (fricas-run-command "fricas -nosman")
:init :init
;; Fix `fricas-mode' messing up `completion-at-point-functions' ;; Fix `fricas-mode' messing up `completion-at-point-functions'
(advice-add #'fricas-mode :around (advice-add #'fricas-mode :around
#'(lambda (oldfun &rest r) #'(lambda (oldfun &rest r)
(let ((temp-capfs))
(let ((completion-at-point-functions '(t))) (let ((completion-at-point-functions '(t)))
(apply oldfun r) (apply oldfun r)
(setq-local completion-at-point-functions (setq temp-capfs completion-at-point-functions))
completion-at-point-functions))) (setq-local completion-at-point-functions temp-capfs)))
'((name . "my/-fricas-fix-capfs"))) '((name . "my/-fricas-fix-capfs")))
:config :config
(face-spec-set 'fricas-type-time '((t (:foreground unspecified (face-spec-set 'fricas-type-time '((t (:foreground unspecified
@ -968,8 +975,8 @@ argument."
:background unspecified :background unspecified
:weight bold :weight bold
:inherit fricas-prompt)))) :inherit fricas-prompt))))
(face-spec-set 'fricas-TeX '((t (:foreground unspecified (face-spec-set 'fricas-TeX '((t (:foreground "black"
:background unspecified :background "white"
:inherit fricas-prompt))))) :inherit fricas-prompt)))))
;; gnuplot (mostly for org-plot) ;; gnuplot (mostly for org-plot)