aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-lang.el
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-07-15 08:51:09 +0800
committergxlin <[email protected]>2021-07-15 08:51:09 +0800
commitb731482680df4fcd19cb3627180bbe4ea2372820 (patch)
tree87d0a193c54030b690907ea7076c674a702d2371 /.emacs.d/lisp/init-lang.el
parent43b356933766807cff3cce9dda6955469f4df49c (diff)
downloaddotfiles-b731482680df4fcd19cb3627180bbe4ea2372820.tar.gz
dotfiles-b731482680df4fcd19cb3627180bbe4ea2372820.tar.bz2
dotfiles-b731482680df4fcd19cb3627180bbe4ea2372820.zip
More config
Diffstat (limited to '.emacs.d/lisp/init-lang.el')
-rw-r--r--.emacs.d/lisp/init-lang.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el
index f8e96b6..b4b7e89 100644
--- a/.emacs.d/lisp/init-lang.el
+++ b/.emacs.d/lisp/init-lang.el
@@ -1,5 +1,7 @@
(use-package ledger-mode
- :mode (("\\.journal$" . ledger-mode)))
+ :mode (("\\.journal$" . ledger-mode))
+ :config
+ (setq ledger-default-date-format ledger-iso-date-format))
(use-package markdown-mode
:ensure t
@@ -15,15 +17,15 @@
(use-package go-mode
:ensure t
:commands (go-mode)
- :mode (("\\.go\\'" . go-mode))
+ :mode (("\\.go$" . go-mode))
:hook ((go-mode . (lambda () (setq tab-width 4)))))
(use-package lsp-mode
:ensure t
+ :commands (lsp lsp-deferred)
:hook
((go-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration))
- :commands (lsp lsp-deferred)
:config
(evil-define-key 'normal lsp-mode-map
(kbd "gd") 'lsp-find-definition