mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
feat(emacs): minor changes
This commit is contained in:
parent
b3224f4eb6
commit
67b6dc3d2c
3 changed files with 23 additions and 32 deletions
|
|
@ -48,5 +48,6 @@
|
|||
'(epe-pipeline-host-face ((t (:foreground "#82aaff"))))
|
||||
'(epe-pipeline-time-face ((t (:foreground "#ffcb6b"))))
|
||||
'(epe-pipeline-user-face ((t (:foreground "#f07178"))))
|
||||
'(notmuch-wash-cited-text ((t (:foreground "#ffcb6b"))))
|
||||
'(tab-bar ((t (:background "#242837" :foreground "#242837"))))
|
||||
'(tab-bar-tab ((t (:background "#292D3E" :foreground "#ffcb6b" :underline "#ffcb6b")))))
|
||||
|
|
|
|||
|
|
@ -892,6 +892,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
#+begin_src emacs-lisp
|
||||
(use-package org
|
||||
:straight (:type built-in))
|
||||
|
||||
(setq org-directory (expand-file-name "~/Documents/org-mode"))
|
||||
#+end_src
|
||||
** Integration with evil
|
||||
#+begin_src emacs-lisp
|
||||
|
|
@ -924,8 +926,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(my-leader-def "ar" 'jupyter-run-repl)
|
||||
#+end_src
|
||||
*** TypeScript
|
||||
#+begin_src emacs-lisp
|
||||
*** OFF TypeScript
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
;; (use-package ob-typescript
|
||||
;; :straight t)
|
||||
#+end_src
|
||||
|
|
@ -951,6 +953,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:config
|
||||
(setq ob-async-no-async-languages-alist '("python" "jupyter-python")))
|
||||
#+end_src
|
||||
** Capture
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-default-notes-file (concat org-directory "/notes.org"))
|
||||
#+end_src
|
||||
** Equations preview
|
||||
#+begin_src emacs-lisp
|
||||
(use-package org-latex-impatient
|
||||
|
|
@ -972,8 +978,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.75))
|
||||
(setq org-highlight-latex-and-related '(native script entities))
|
||||
#+end_src
|
||||
** Export to LaTeX
|
||||
#+begin_src emacs-lisp
|
||||
** OFF Export to LaTeX
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
;; (use-package htmlize
|
||||
;; :straight t)
|
||||
|
||||
|
|
@ -1888,10 +1894,11 @@ pip install qtconsole markdown qrcode[pil] PyQt5 PyQtWebEngine
|
|||
:straight t
|
||||
:after (lsp)
|
||||
:config
|
||||
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz")
|
||||
(add-hook 'java-mode-hook #'smartparens-mode)
|
||||
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz"))
|
||||
|
||||
(add-hook 'java-mode-hook #'smartparens-mode)
|
||||
(add-hook 'java-mode-hook #'hs-minor-mode)
|
||||
(my/set-smartparens-indent 'java-mode))
|
||||
(my/set-smartparens-indent 'java-mode)
|
||||
#+end_src
|
||||
** Clojure
|
||||
#+begin_src emacs-lisp
|
||||
|
|
|
|||
|
|
@ -705,6 +705,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(use-package org
|
||||
:straight (:type built-in))
|
||||
|
||||
(setq org-directory (expand-file-name "~/Documents/org-mode"))
|
||||
|
||||
(use-package evil-org
|
||||
:straight t
|
||||
:after (org evil-collection)
|
||||
|
|
@ -731,9 +733,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(my-leader-def "ar" 'jupyter-run-repl)
|
||||
|
||||
;; (use-package ob-typescript
|
||||
;; :straight t)
|
||||
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((emacs-lisp . t)
|
||||
|
|
@ -754,6 +753,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:config
|
||||
(setq ob-async-no-async-languages-alist '("python" "jupyter-python")))
|
||||
|
||||
(setq org-default-notes-file (concat org-directory "/notes.org"))
|
||||
|
||||
(use-package org-latex-impatient
|
||||
:straight (
|
||||
:repo "yangsheng6810/org-latex-impatient"
|
||||
|
|
@ -771,25 +772,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.75))
|
||||
(setq org-highlight-latex-and-related '(native script entities))
|
||||
|
||||
;; (use-package htmlize
|
||||
;; :straight t)
|
||||
|
||||
(defun my/setup-org-latex ()
|
||||
(setq org-latex-compiler "xelatex")
|
||||
(add-to-list 'org-latex-classes
|
||||
'("extarticle"
|
||||
"\\documentclass[a4paper, 14pt]{extarticle}"
|
||||
("\\section{%s}" . "\\section*{%s}")
|
||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
|
||||
)
|
||||
)
|
||||
|
||||
(with-eval-after-load 'ox-latex
|
||||
(my/setup-org-latex))
|
||||
|
||||
(use-package ox-hugo
|
||||
:straight t
|
||||
:after ox)
|
||||
|
|
@ -1424,10 +1406,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:straight t
|
||||
:after (lsp)
|
||||
:config
|
||||
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz")
|
||||
(add-hook 'java-mode-hook #'smartparens-mode)
|
||||
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz"))
|
||||
|
||||
(add-hook 'java-mode-hook #'smartparens-mode)
|
||||
(add-hook 'java-mode-hook #'hs-minor-mode)
|
||||
(my/set-smartparens-indent 'java-mode))
|
||||
(my/set-smartparens-indent 'java-mode)
|
||||
|
||||
(use-package clojure-mode
|
||||
:straight t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue