summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/emacs.el
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-02-13 08:53:55 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2024-02-13 08:53:55 +0100
commit7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d (patch)
tree086ba2cff99a6342b8efbed05a6ff5458d82d4c7 /accounts/gkleen@sif/emacs.el
parentae67327df3faaf106d2bcb352d4151774576bf00 (diff)
downloadnixos-7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d.tar
nixos-7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d.tar.gz
nixos-7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d.tar.bz2
nixos-7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d.tar.xz
nixos-7b8d1bdc62c5fc3feacfe23fd1eefe85f05b878d.zip
...
Diffstat (limited to 'accounts/gkleen@sif/emacs.el')
-rw-r--r--accounts/gkleen@sif/emacs.el21
1 files changed, 17 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el
index a2288bf9..0eed3bce 100644
--- a/accounts/gkleen@sif/emacs.el
+++ b/accounts/gkleen@sif/emacs.el
@@ -79,15 +79,27 @@
79 ) 79 )
80(add-hook 'js-mode-hook 'my-js-mode-hook) 80(add-hook 'js-mode-hook 'my-js-mode-hook)
81 81
82(defun anansi-mode-hook ()
83 (setq indent-tabs-mode nil)
84 )
85(define-derived-mode anansi-mode 82(define-derived-mode anansi-mode
86 markdown-mode "Anansi" 83 markdown-mode "Anansi"
87 "Major mode for anansi" 84 "Major mode for anansi"
88 'anansi-mode-hook) 85 (lambda () (setq indent-tabs-mode nil)))
89(add-to-list 'auto-mode-alist '("\\.anansi\\'" . anansi-mode)) 86(add-to-list 'auto-mode-alist '("\\.anansi\\'" . anansi-mode))
90 87
88(projectile-mode +1)
89(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
90
91(add-hook 'rustic-mode-hook (lambda () (setq indent-tabs-mode nil)))
92(add-hook 'rustic-mode-hook #'lsp-deferred)
93(add-hook 'rustic-mode-hook (lambda () (setq lsp-ui-sideline-enable nil)))
94(setq lsp-auto-guess-root t)
95(setq lsp-inlay-hint-enable t)
96;; (add-hook 'rust-mode-hook 'lsp-inlay-hints-mode)
97(setq lsp-rust-analyzer-server-display-inlay-hints t)
98(setq lsp-rust-analyzer-inlay-hints-mode t)
99(setq lsp-rust-analyzer-display-parameter-hints t)
100(setq lsp-rust-analyzer-display-chaining-hints t)
101(setq lsp-rust-analyzer-hide-named-constructor nil)
102
91(setq undo-tree-auto-save-history t) 103(setq undo-tree-auto-save-history t)
92 104
93(defvar expand-file-name-custom-tilde-alist '(("u2w-srv01" . "/ssh:srv01.uniworx.de:/home/gkleen/projects/uni2work") ("fra-srv01" . "/ssh:srv01.uniworx.de:/home/gkleen/projects/fradrive"))) 105(defvar expand-file-name-custom-tilde-alist '(("u2w-srv01" . "/ssh:srv01.uniworx.de:/home/gkleen/projects/uni2work") ("fra-srv01" . "/ssh:srv01.uniworx.de:/home/gkleen/projects/fradrive")))
@@ -156,6 +168,7 @@
156(customize-set-variable 'tramp-use-ssh-controlmaster-options nil) 168(customize-set-variable 'tramp-use-ssh-controlmaster-options nil)
157(setq tramp-allow-unsafe-temporary-files t) 169(setq tramp-allow-unsafe-temporary-files t)
158 170
171(direnv-mode)
159(setq direnv-enabled-hosts '("uni2work-dev1")) 172(setq direnv-enabled-hosts '("uni2work-dev1"))
160 173
161(setq auth-sources '()) 174(setq auth-sources '())