From: Eshel Yaron Date: Sun, 8 Oct 2023 12:01:21 +0000 (+0200) Subject: Update Emacs configuration X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c7bdb1e341e517ecc8681b3cd5724433e5226803;p=dotfiles.git Update Emacs configuration --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3012935..a640a0b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -453,11 +453,7 @@ TeX-source-correlate-mode t TeX-electric-sub-and-superscript t ;; TeX-electric-escape t - LaTeX-electric-left-right-brace t - TeX-mode-alist '((tex-mode . tex-mode) - (plain-tex-mode . tex-mode) - (latex-mode . tex-mode) - (doctex-mode . tex-mode))) + LaTeX-electric-left-right-brace t) (setq-default indent-tabs-mode nil) @@ -474,8 +470,10 @@ :background "lavender" :underline nil) (set-face-attribute 'mode-line-inactive nil - :box nil :background nil :underline "black") -(set-face-attribute 'fringe nil :background nil) + :box nil + :background nil + :underline "black") +(set-face-attribute 'fringe nil :background nil) (set-face-attribute 'line-number-current-line nil :background "yellow" :inherit nil) @@ -1415,6 +1413,7 @@ as the initial input for completion, and return that directory." (indent-according-to-mode))) (with-eval-after-load 'tex + (setopt TeX-modes '(tex-mode plain-tex-mode latex-mode doctex-mode)) (add-hook 'plain-TeX-mode-hook (lambda () (set (make-local-variable 'TeX-electric-math) (cons "$" "$")))) @@ -1512,8 +1511,8 @@ as the initial input for completion, and return that directory." (list (propertize (concat (project-name project) "/ ") 'face 'italic)))) - mode-line-buffer-identification - "(%[" + (:propertize "%b" face mode-line-buffer-id) + " (%[" mode-name mode-line-process minor-mode-alist (:eval (when (window-dedicated-p) " Dedicated"))