mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
emacs stuff
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
parent
5793f06625
commit
76cda34690
@ -211,6 +211,7 @@
|
|||||||
'(inhibit-startup-screen t)
|
'(inhibit-startup-screen t)
|
||||||
'(show-paren-mode t)
|
'(show-paren-mode t)
|
||||||
'(show-paren-style 'mixed)
|
'(show-paren-style 'mixed)
|
||||||
|
'(blink-matching-paren 'infoline)
|
||||||
'(org-agenda-files '("~/org-notes/daily/" "~/org-notes/"))
|
'(org-agenda-files '("~/org-notes/daily/" "~/org-notes/"))
|
||||||
'(org-angeda-files '("~/org-notes/daily/" "~/org-notes/"))
|
'(org-angeda-files '("~/org-notes/daily/" "~/org-notes/"))
|
||||||
'(size-indication-mode)
|
'(size-indication-mode)
|
||||||
@ -311,19 +312,21 @@
|
|||||||
;(push 'rustic-clippy flycheck-checkers)
|
;(push 'rustic-clippy flycheck-checkers)
|
||||||
|
|
||||||
;; company mode
|
;; company mode
|
||||||
;(add-hook 'rustic-mode-hook 'company-mode)
|
;;(add-hook 'rustic-mode-hook 'company-mode)
|
||||||
;(add-hook 'rustic-mode-hook 'flymake-mode)
|
;;(add-hook 'rustic-mode-hook 'flymake-mode)
|
||||||
|
|
||||||
(use-package rustic
|
(use-package rustic
|
||||||
:after lsp
|
:after lsp-mode
|
||||||
:config
|
:config
|
||||||
(add-to-list 'flycheck-checkers 'rustic-clippy)
|
(add-to-list 'flycheck-checkers 'rustic-clippy)
|
||||||
(flycheck-add-next-checker 'lsp 'rustic-clippy)
|
(lsp-diagnostics-flycheck-enable)
|
||||||
|
;;(flycheck-add-next-checker 'lsp 'rustic-clippy)
|
||||||
:custom
|
:custom
|
||||||
(rustic-format-trigger 'on-save)
|
(rustic-format-trigger 'on-save)
|
||||||
(rustic-flycheck-clippy-params "--message-format=json")
|
(rustic-flycheck-clippy-params "--message-format=json")
|
||||||
:hook
|
:hook
|
||||||
(rustic-mode . company-mode)
|
(rustic-mode . company-mode)
|
||||||
(rustic-mode . flymake-mode)
|
;;(rustic-mode . flymake-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@ -408,6 +411,7 @@
|
|||||||
|
|
||||||
;; lsp
|
;; lsp
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
|
:demand t
|
||||||
:after flycheck
|
:after flycheck
|
||||||
:commands lsp
|
:commands lsp
|
||||||
:preface
|
:preface
|
||||||
@ -417,31 +421,31 @@
|
|||||||
cmake-mode
|
cmake-mode
|
||||||
c++-mode
|
c++-mode
|
||||||
css-mode
|
css-mode
|
||||||
;; dockerfile-mode
|
dockerfile-mode
|
||||||
js2-mode
|
js2-mode
|
||||||
f90-mode
|
f90-mode
|
||||||
html-mode
|
html-mode
|
||||||
haskell-mode
|
haskell-mode
|
||||||
java-mode
|
java-mode
|
||||||
json-mode
|
json-mode
|
||||||
;; lua-mode
|
lua-mode
|
||||||
;; markdown-mode
|
markdown-mode
|
||||||
nix-mode
|
nix-mode
|
||||||
;; ocaml-mode
|
;; ocaml-mode
|
||||||
;; pascal-mode
|
;; pascal-mode
|
||||||
;; perl-mode
|
;; perl-mode
|
||||||
;; php-mode
|
;; php-mode
|
||||||
;; prolog-mode
|
prolog-mode
|
||||||
python-mode
|
python-mode
|
||||||
;; ess-mode
|
;; ess-mode
|
||||||
;; ruby-mode
|
;; ruby-mode
|
||||||
rust-mode
|
rust-mode
|
||||||
;; sql-mode
|
sql-mode
|
||||||
rustic
|
rustic
|
||||||
typescript-mode
|
typescript-mode
|
||||||
vue-mode
|
vue-mode
|
||||||
;; xml-mode
|
;; xml-mode
|
||||||
;; yaml-mode
|
yaml-mode
|
||||||
web-mode
|
web-mode
|
||||||
) . lsp)
|
) . lsp)
|
||||||
(lsp-mode . flycheck-mode)
|
(lsp-mode . flycheck-mode)
|
||||||
@ -453,6 +457,7 @@
|
|||||||
;(lsp-keymap-prefix "C-c")
|
;(lsp-keymap-prefix "C-c")
|
||||||
(lsp-eldoc-render-all t)
|
(lsp-eldoc-render-all t)
|
||||||
(lsp-file-watch-threshold 5000)
|
(lsp-file-watch-threshold 5000)
|
||||||
|
(lsp-ui-doc-enable nil)
|
||||||
(lsp-ui-doc-border "#586e75")
|
(lsp-ui-doc-border "#586e75")
|
||||||
(lsp-ui-doc-header t)
|
(lsp-ui-doc-header t)
|
||||||
(lsp-ui-doc-include-signature t)
|
(lsp-ui-doc-include-signature t)
|
||||||
@ -463,6 +468,9 @@
|
|||||||
;:custom-face
|
;:custom-face
|
||||||
;(lsp-ui-sideline-code-action ((t (:foreground "#b58900"))))
|
;(lsp-ui-sideline-code-action ((t (:foreground "#b58900"))))
|
||||||
;(lsp-ui-sideline-current-symbol ((t (:foreground "#d33682" :box (:line-width -1 :color "#d33682") :weight ultra-bold :height 0.99)))))
|
;(lsp-ui-sideline-current-symbol ((t (:foreground "#d33682" :box (:line-width -1 :color "#d33682") :weight ultra-bold :height 0.99)))))
|
||||||
|
(use-package lsp-diagnostics
|
||||||
|
:after lsp-mode
|
||||||
|
:commands lsp-diagnostics-flycheck-enable)
|
||||||
|
|
||||||
;; misc
|
;; misc
|
||||||
(use-package academic-phrases
|
(use-package academic-phrases
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user