[lang] add paredit && clojure config

This commit is contained in:
SouthFox 2023-08-13 17:54:59 +08:00
parent 1a94643261
commit 744f81dc98
3 changed files with 47 additions and 0 deletions

View file

@ -173,6 +173,9 @@
(add-to-list 'default-frame-alist '(height . 35))
(add-to-list 'default-frame-alist '(width . 102))
(add-hook 'python-mode-hook #'rainbow-delimiters-mode)
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode)
(setq shell-file-name "/bin/zsh"
vterm-max-scrollback 5000)
@ -469,3 +472,16 @@
"--proxy" "socks5://127.0.0.1:10808"
"--retry" "2"
"--insecure")))
(use-package! flycheck-clj-kondo
:after (clojure-mode))
(use-package! clj-refactor
:after (clojure-mode))
(use-package! paredit
:after (clojure-mode)
:config
(add-hook 'clojure-mode-hook 'enable-paredit-mode)
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
(add-hook 'cider-repl-mode-hook 'enable-paredit-mode))

View file

@ -242,6 +242,12 @@
(add-to-list 'default-frame-alist '(width . 102))
#+end_src
** 彩虹括号
#+begin_src emacs-lisp
(add-hook 'python-mode-hook #'rainbow-delimiters-mode)
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode)
#+end_src
** Shell
将使用的终端切换到 =zsh=
@ -654,3 +660,22 @@
"--insecure")))
#+end_src
* Clojure
#+begin_src emacs-lisp
(use-package! flycheck-clj-kondo
:after (clojure-mode))
(use-package! clj-refactor
:after (clojure-mode))
#+end_src
** Paredit
#+begin_src emacs-lisp
(use-package! paredit
:after (clojure-mode)
:config
(add-hook 'clojure-mode-hook 'enable-paredit-mode)
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
(add-hook 'cider-repl-mode-hook 'enable-paredit-mode))
#+end_src

View file

@ -82,3 +82,9 @@
:recipe (:host github :repo "tecosaur/screenshot"))
(package! impatient-mode)
;; clojure
(unpin! (:lang clojure))
(package! cider)
(package! flycheck-clj-kondo)
(package! clj-refactor)