lots of tweaks
This commit is contained in:
parent
d40840e22e
commit
4a4afc925d
1 changed files with 41 additions and 5 deletions
|
|
@ -318,13 +318,36 @@
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package haskell-mode)
|
(use-package haskell-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** OCaml
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package tuareg
|
||||||
|
:mode (("\\.ocamlinit\\'" . tuareg-mode)))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Rust
|
** Rust
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:init
|
|
||||||
(setq rust-mode-treesitter-derive t)
|
|
||||||
:hook
|
:hook
|
||||||
(rust-mode-hook . eglot-ensure))
|
(rust-mode-hook . eglot-ensure))
|
||||||
|
|
||||||
|
(use-package eglot
|
||||||
|
:straight (:type built-in)
|
||||||
|
:bind (:map eglot-mode-map
|
||||||
|
("C-c C-l r" . eglot-rename)
|
||||||
|
("C-c C-l f" . eglot-format-buffer)
|
||||||
|
("C-c C-l a" . eglot-code-actions)
|
||||||
|
("C-c C-l q" . eglot-code-action-quickfix)
|
||||||
|
("C-c C-l d" . xref-find-definitions)
|
||||||
|
("C-c C-l i" . eglot-find-implementation)
|
||||||
|
("C-c C-l t" . eglot-find-type-definition)
|
||||||
|
("C-c C-l s" . xref-find-references)
|
||||||
|
("C-c C-l h" . eldoc)
|
||||||
|
("C-c C-l R" . eglot-restart-process)
|
||||||
|
("C-c C-l e" . eglot-errors-at-point))
|
||||||
|
(:map flymake-mode-map
|
||||||
|
("M-n" . flymake-goto-next-error)
|
||||||
|
("M-p" . flymake-goto-prev-error)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** KDL
|
** KDL
|
||||||
(For niri)
|
(For niri)
|
||||||
|
|
@ -478,6 +501,18 @@ I'm using the fork as described [[https://abode.karthinks.com/org-latex-preview/
|
||||||
(org-mode . flyspell-mode)
|
(org-mode . flyspell-mode)
|
||||||
(org-mode . org-latex-preview-auto-mode))
|
(org-mode . org-latex-preview-auto-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** toki pona support
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(with-eval-after-load 'ox
|
||||||
|
(add-to-list 'org-export-dictionary
|
||||||
|
'("Footnotes" ("tok" :default "toki anpa")))
|
||||||
|
(add-to-list 'org-export-dictionary
|
||||||
|
'("Author" ("tok" :default "jan toki")))
|
||||||
|
(add-to-list 'org-export-dictionary
|
||||||
|
'("Table of Contents" ("tok" :default "ni li lon lipu ni:")))
|
||||||
|
(add-to-list 'org-export-dictionary
|
||||||
|
'("Created" ("tok" :default "mi pali e ni lon tenpo"))))
|
||||||
|
#+end_src
|
||||||
** Prettify
|
** Prettify
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org-modern
|
(use-package org-modern
|
||||||
|
|
@ -486,8 +521,8 @@ I'm using the fork as described [[https://abode.karthinks.com/org-latex-preview/
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Bloggy stuff
|
** Org Bloggy stuff
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defconst my-blog-org-dir "~/Documents/test/blog/org/")
|
(defconst my-blog-org-dir "~/repos/blog/org/")
|
||||||
(defconst my-blog-public-dir "~/Documents/test/blog/html")
|
(defconst my-blog-public-dir "~/repos/blog/html")
|
||||||
|
|
||||||
(setq org-publish-project-alist
|
(setq org-publish-project-alist
|
||||||
`(("my-logic-blog"
|
`(("my-logic-blog"
|
||||||
|
|
@ -502,7 +537,8 @@ I'm using the fork as described [[https://abode.karthinks.com/org-latex-preview/
|
||||||
:sitemap-style list
|
:sitemap-style list
|
||||||
:html-head "<link rel=\"stylesheet\" href=\"/style.css\" type=\"text/css\"/>"
|
:html-head "<link rel=\"stylesheet\" href=\"/style.css\" type=\"text/css\"/>"
|
||||||
:html-preamble t
|
:html-preamble t
|
||||||
:html-preamble-format (("en" "<div class=\"blog-header\"><a href=\"index.html\">← Back to Blog Index</a></div>"))
|
:html-preamble-format (("en" "<div class=\"blog-header\"><a href=\"index.html\">← Back to Blog Index</a></div>")
|
||||||
|
("tok" "<div class=\"blog-header\"><a href=\"index.html\">← o tawa monsi</a></div>"))
|
||||||
)
|
)
|
||||||
|
|
||||||
("my-logic-blog-static"
|
("my-logic-blog-static"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue