mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
feat(emacs): clojure
This commit is contained in:
parent
8b4424e4e3
commit
5a3f3fa4d6
3 changed files with 34 additions and 3 deletions
|
|
@ -5,12 +5,14 @@
|
|||
;; If there is more than one, they won't work right.
|
||||
'(css-indent-offset 2)
|
||||
'(custom-safe-themes
|
||||
'("c83c095dd01cde64b631fb0fe5980587deec3834dc55144a6e78ff91ebc80b19" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" "e074be1c799b509f52870ee596a5977b519f6d269455b84ed998666cf6fc802a" default))
|
||||
'("aaa4c36ce00e572784d424554dcc9641c82d1155370770e231e10c649b59a074" "c83c095dd01cde64b631fb0fe5980587deec3834dc55144a6e78ff91ebc80b19" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" "e074be1c799b509f52870ee596a5977b519f6d269455b84ed998666cf6fc802a" default))
|
||||
'(dired-recursive-copies 'always)
|
||||
'(js-indent-level 2)
|
||||
'(org-agenda-files
|
||||
'("~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
|
||||
'(sgml-basic-offset 2)
|
||||
'(sp-autoskip-opening-pair t)
|
||||
'(sp-highlight-pair-overlay nil)
|
||||
'(wakatime-cli-path "/usr/bin/wakatime")
|
||||
'(wakatime-python-bin nil))
|
||||
(custom-set-faces
|
||||
|
|
|
|||
|
|
@ -999,12 +999,13 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package auto-dim-other-buffers
|
||||
:straight t
|
||||
:if (display-graphic-p)
|
||||
:config
|
||||
(set-face-attribute 'auto-dim-other-buffers-face nil
|
||||
:background "#212533")
|
||||
(auto-dim-other-buffers-mode t))
|
||||
|
||||
(use-package doom-themes
|
||||
(use-package doom-themes
|
||||
:straight t
|
||||
:config
|
||||
(setq doom-themes-enable-bold t
|
||||
|
|
@ -1251,6 +1252,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:straight t)
|
||||
|
||||
(add-hook 'typescript-mode-hook #'smartparens-mode)
|
||||
(defun my/set-smartparens-indent (mode)
|
||||
(sp-local-pair mode "{" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
(sp-local-pair mode "[" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
)
|
||||
(my/set-smartparens-indent 'typescript-mode)
|
||||
#+end_src
|
||||
*** Override flycheck checker with eslint
|
||||
#+begin_src emacs-lisp
|
||||
|
|
@ -1263,6 +1269,12 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
;; #'set-flycheck-eslint)
|
||||
|
||||
#+end_src
|
||||
** JavaScript
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'javascript-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'javascript-mode)
|
||||
#+end_src
|
||||
|
||||
** Vue.js
|
||||
#+begin_src emacs-lisp
|
||||
(use-package vue-mode
|
||||
|
|
@ -1273,6 +1285,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(add-hook 'vue-mode-hook #'hs-minor-mode)
|
||||
(add-hook 'vue-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'vue-mode)
|
||||
|
||||
(with-eval-after-load 'editorconfig
|
||||
(add-to-list 'editorconfig-indentation-alist
|
||||
|
|
@ -1313,6 +1326,9 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
#+begin_src emacs-lisp
|
||||
(use-package json-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'json-mode #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'json-mode)
|
||||
#+end_src
|
||||
** YAML
|
||||
#+begin_src emacs-lisp
|
||||
|
|
|
|||
|
|
@ -843,12 +843,13 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package auto-dim-other-buffers
|
||||
:straight t
|
||||
:if (display-graphic-p)
|
||||
:config
|
||||
(set-face-attribute 'auto-dim-other-buffers-face nil
|
||||
:background "#212533")
|
||||
(auto-dim-other-buffers-mode t))
|
||||
|
||||
(use-package doom-themes
|
||||
(use-package doom-themes
|
||||
:straight t
|
||||
:config
|
||||
(setq doom-themes-enable-bold t
|
||||
|
|
@ -1044,6 +1045,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:straight t)
|
||||
|
||||
(add-hook 'typescript-mode-hook #'smartparens-mode)
|
||||
(defun my/set-smartparens-indent (mode)
|
||||
(sp-local-pair mode "{" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
(sp-local-pair mode "[" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
)
|
||||
(my/set-smartparens-indent 'typescript-mode)
|
||||
|
||||
(defun set-flycheck-eslint()
|
||||
"Override flycheck checker with eslint."
|
||||
|
|
@ -1053,6 +1059,9 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
;; (add-hook 'typescript-mode-hook
|
||||
;; #'set-flycheck-eslint)
|
||||
|
||||
(add-hook 'javascript-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'javascript-mode)
|
||||
|
||||
(use-package vue-mode
|
||||
:straight t)
|
||||
|
||||
|
|
@ -1061,6 +1070,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(add-hook 'vue-mode-hook #'hs-minor-mode)
|
||||
(add-hook 'vue-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'vue-mode)
|
||||
|
||||
(with-eval-after-load 'editorconfig
|
||||
(add-to-list 'editorconfig-indentation-alist
|
||||
|
|
@ -1093,6 +1103,9 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package json-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'json-mode #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'json-mode)
|
||||
|
||||
(use-package yaml-mode
|
||||
:straight t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue