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
|
||||
:bind
|
||||
(("C-x b" . consult-buffer)
|
||||
|
|
@ -49,7 +60,8 @@
|
|||
("C-x p b" . consult-project-buffer)
|
||||
("M-y" . consult-yank-pop)
|
||||
("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
|
||||
(completion-list-mode . consult-preview-at-point-mode))
|
||||
|
||||
|
|
@ -108,6 +120,10 @@
|
|||
:line-spacing 0.2)))
|
||||
(fontaine-set-preset 'regular))
|
||||
|
||||
(use-package lsp-mode
|
||||
:hook (swift-mode . lsp)
|
||||
:commands lsp)
|
||||
|
||||
(use-package marginalia
|
||||
:init
|
||||
(marginalia-mode))
|
||||
|
|
@ -136,6 +152,13 @@
|
|||
:init
|
||||
(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
|
||||
:init
|
||||
(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