From b731482680df4fcd19cb3627180bbe4ea2372820 Mon Sep 17 00:00:00 2001 From: gxlin Date: Thu, 15 Jul 2021 08:51:09 +0800 Subject: More config --- .emacs.d/lisp/init-lang.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/init-lang.el') 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 -- cgit v1.2.3