Put custom languages module into init.el
This commit is contained in:
parent
3f164e6e91
commit
6c4ddc7718
2 changed files with 24 additions and 32 deletions
|
|
@ -41,6 +41,17 @@
|
||||||
|
|
||||||
;; -----------------------------------------------------------------
|
;; -----------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package cider
|
||||||
|
:defer t)
|
||||||
|
|
||||||
|
(use-package clj-refactor
|
||||||
|
:hook clojure-mode)
|
||||||
|
|
||||||
|
(use-package clojure-mode
|
||||||
|
:config
|
||||||
|
(use-package flycheck-clj-kondo)
|
||||||
|
(require 'flycheck-clj-kondo))
|
||||||
|
|
||||||
(use-package consult
|
(use-package consult
|
||||||
:bind
|
:bind
|
||||||
(("C-x b" . consult-buffer)
|
(("C-x b" . consult-buffer)
|
||||||
|
|
@ -49,7 +60,8 @@
|
||||||
("C-x p b" . consult-project-buffer)
|
("C-x p b" . consult-project-buffer)
|
||||||
("M-y" . consult-yank-pop)
|
("M-y" . consult-yank-pop)
|
||||||
("M-g g" . consult-goto-line)
|
("M-g g" . consult-goto-line)
|
||||||
("M-g M-g" . consult-goto-line))
|
("M-g M-g" . consult-goto-line)
|
||||||
|
("M-i" . consult-imenu))
|
||||||
:hook
|
:hook
|
||||||
(completion-list-mode . consult-preview-at-point-mode))
|
(completion-list-mode . consult-preview-at-point-mode))
|
||||||
|
|
||||||
|
|
@ -108,6 +120,10 @@
|
||||||
:line-spacing 0.2)))
|
:line-spacing 0.2)))
|
||||||
(fontaine-set-preset 'regular))
|
(fontaine-set-preset 'regular))
|
||||||
|
|
||||||
|
(use-package lsp-mode
|
||||||
|
:hook (swift-mode . lsp)
|
||||||
|
:commands lsp)
|
||||||
|
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
:init
|
:init
|
||||||
(marginalia-mode))
|
(marginalia-mode))
|
||||||
|
|
@ -136,6 +152,13 @@
|
||||||
:init
|
:init
|
||||||
(savehist-mode))
|
(savehist-mode))
|
||||||
|
|
||||||
|
(use-package lsp-sourcekit
|
||||||
|
:after lsp-mode
|
||||||
|
:config
|
||||||
|
(setq lsp-sourcekit-executable "/Library/Developer/CommandLineTools/usr/bin/sourcekit-lsp"))
|
||||||
|
|
||||||
|
(use-package swift-mode)
|
||||||
|
|
||||||
(use-package vertico
|
(use-package vertico
|
||||||
:init
|
:init
|
||||||
(vertico-mode)
|
(vertico-mode)
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
;; Clojure
|
|
||||||
|
|
||||||
(use-package clojure-mode
|
|
||||||
:config
|
|
||||||
(use-package flycheck-clj-kondo)
|
|
||||||
(require 'flycheck-clj-kondo))
|
|
||||||
|
|
||||||
(use-package cider
|
|
||||||
:defer t)
|
|
||||||
|
|
||||||
(use-package clj-refactor
|
|
||||||
:init
|
|
||||||
(add-hook 'clojure-mode-hook 'clj-refactor-mode))
|
|
||||||
|
|
||||||
;; LSP
|
|
||||||
|
|
||||||
(use-package lsp-mode
|
|
||||||
:hook (swift-mode . lsp)
|
|
||||||
:commands lsp)
|
|
||||||
|
|
||||||
;; Swift
|
|
||||||
|
|
||||||
(use-package swift-mode)
|
|
||||||
|
|
||||||
(use-package lsp-sourcekit
|
|
||||||
:after lsp-mode
|
|
||||||
:config
|
|
||||||
(setq lsp-sourcekit-executable "/Library/Developer/CommandLineTools/usr/bin/sourcekit-lsp"))
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'tobmacs-languages)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue