feat: Typst and Julia in emacs
This commit is contained in:
parent
c922e623b1
commit
05a25f4510
|
@ -317,7 +317,6 @@ Here we set the default shell to ~bash~ but the vterm shell to the system
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! smart-tabs-mode
|
(use-package! smart-tabs-mode
|
||||||
:config
|
:config
|
||||||
(print! "Configuring smart-tabs-mode")
|
|
||||||
(smart-tabs-insinuate
|
(smart-tabs-insinuate
|
||||||
'c 'c++
|
'c 'c++
|
||||||
'java
|
'java
|
||||||
|
@ -357,7 +356,6 @@ Note that ~onsave~ was intentionally turned off because it messes with version c
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! format
|
(after! format
|
||||||
(print! "Configuring (after! format ...)")
|
|
||||||
'(not
|
'(not
|
||||||
emacs-lisp-mode
|
emacs-lisp-mode
|
||||||
sql-mode ; Broken
|
sql-mode ; Broken
|
||||||
|
@ -372,7 +370,6 @@ Note that ~onsave~ was intentionally turned off because it messes with version c
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! flyspell
|
(after! flyspell
|
||||||
(print! "Configuring (after! flyspell ...)")
|
|
||||||
(setq flyspell-default-dictionary "english"))
|
(setq flyspell-default-dictionary "english"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -552,7 +549,6 @@ introduced.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! latex
|
(after! latex
|
||||||
(print! "Configuring (after! latex ...)")
|
|
||||||
(add-hook 'tex-mode-hook #'custom/common-program-hook)
|
(add-hook 'tex-mode-hook #'custom/common-program-hook)
|
||||||
(add-hook 'LaTeX-mode-hook #'custom/common-program-hook)
|
(add-hook 'LaTeX-mode-hook #'custom/common-program-hook)
|
||||||
(setq-default TeX-electric-sub-and-superscript nil)
|
(setq-default TeX-electric-sub-and-superscript nil)
|
||||||
|
@ -682,7 +678,19 @@ Add the necessary hooks for LilyPond mode.
|
||||||
(package! typst-ts-mode :recipe (
|
(package! typst-ts-mode :recipe (
|
||||||
:type git :host codeberg :repo "meow_king/typst-ts-mode"))
|
:type git :host codeberg :repo "meow_king/typst-ts-mode"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+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
|
(map! :after typst-ts-mode
|
||||||
:localleader
|
:localleader
|
||||||
:map typst-ts-mode-map
|
:map typst-ts-mode-map
|
||||||
|
|
|
@ -153,7 +153,7 @@
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
nix ; I hereby declare "nix geht mehr!"
|
nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
(org +brain +ipython +jupyter +roam2) ; organize your plain life in plain text
|
org ; organize your plain life in plain text
|
||||||
;;php ; perl's insecure younger brother
|
;;php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
|
|
||||||
:app
|
:app
|
||||||
calendar
|
calendar
|
||||||
;emms
|
;;emms
|
||||||
everywhere ; *leave* Emacs!? You must be joking
|
everywhere ; *leave* Emacs!? You must be joking
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
;;(rss +org) ; emacs as an RSS reader
|
;;(rss +org) ; emacs as an RSS reader
|
||||||
|
|
Loading…
Reference in New Issue