Compare commits

..

2 Commits
emacs ... main

2 changed files with 5 additions and 20 deletions

View File

@ -317,6 +317,7 @@ Here we set the default shell to ~bash~ but the vterm shell to the system
#+begin_src emacs-lisp
(use-package! smart-tabs-mode
:config
(print! "Configuring smart-tabs-mode")
(smart-tabs-insinuate
'c 'c++
'java
@ -356,6 +357,7 @@ Note that ~onsave~ was intentionally turned off because it messes with version c
#+begin_src emacs-lisp
(after! format
(print! "Configuring (after! format ...)")
'(not
emacs-lisp-mode
sql-mode ; Broken
@ -370,6 +372,7 @@ Note that ~onsave~ was intentionally turned off because it messes with version c
#+begin_src emacs-lisp
(after! flyspell
(print! "Configuring (after! flyspell ...)")
(setq flyspell-default-dictionary "english"))
#+end_src
@ -480,13 +483,6 @@ removed.
)
#+end_src
*** Julia
#+begin_src emacs-lisp
(add-hook 'julia-mode-hook (lambda ()
(setq tab-width 4)))
#+end_src
*** LaTeX
The target indentation style of ~LaTeX~ is as follows:
@ -549,6 +545,7 @@ introduced.
#+begin_src emacs-lisp
(after! latex
(print! "Configuring (after! latex ...)")
(add-hook 'tex-mode-hook #'custom/common-program-hook)
(add-hook 'LaTeX-mode-hook #'custom/common-program-hook)
(setq-default TeX-electric-sub-and-superscript nil)
@ -678,19 +675,7 @@ Add the necessary hooks for LilyPond mode.
(package! typst-ts-mode :recipe (
:type git :host codeberg :repo "meow_king/typst-ts-mode"))
#+end_src
#+begin_src emacs-lisp
(defun custom/typst-hook ()
(display-line-numbers-mode)
(display-fill-column-indicator-mode)
(setq
indent-tabs-mode t
tab-width 2
standard-indent 2)
(smart-tabs-mode-enable)
)
(after! typst-ts-mode
(add-hook 'typst-ts-mode-hook #'custom/typst-hook))
(map! :after typst-ts-mode
:localleader
:map typst-ts-mode-map

View File

@ -183,7 +183,7 @@
:app
calendar
;;emms
emms
everywhere ; *leave* Emacs!? You must be joking
;;irc ; how neckbeards socialize
;;(rss +org) ; emacs as an RSS reader