From fa0aace21f670292b868807512afad174e5a9ee6 Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Fri, 26 Dec 2025 20:04:59 +0800 Subject: [PATCH] Small improvement --- init.el | 1 + lisp/init-coding.el | 10 ++++++++-- lisp/init-lsp.el | 6 ++---- lisp/init-org.el | 5 ++++- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 3f3079e..a075be2 100644 --- a/init.el +++ b/init.el @@ -31,6 +31,7 @@ (require 'init-org) (require 'init-tex) +(require 'init-markdown) (require 'init-typst) (require 'init-cc) (require 'init-python) diff --git a/lisp/init-coding.el b/lisp/init-coding.el index 9c1e012..14e0d4a 100644 --- a/lisp/init-coding.el +++ b/lisp/init-coding.el @@ -18,8 +18,14 @@ ;; :config ;; ) -(use-package vterm - :bind ("C-\\" . vterm)) +(use-package vterm) + + +(use-package vterm-toggle + :bind ("C-\\" . vterm-toggle) + :config + (define-key vterm-mode-map (kbd "C-\\") #'vterm-toggle)) + (use-package editorconfig :diminish :hook elpaca-after-init) diff --git a/lisp/init-lsp.el b/lisp/init-lsp.el index 3593c18..887e8ab 100644 --- a/lisp/init-lsp.el +++ b/lisp/init-lsp.el @@ -122,7 +122,7 @@ (add-hook 'after-save-hook #'lsp-pyright-format-buffer t t)))) :init ;; (when (executable-find "python3") - ;; (setq lsp-pyright-python-executable-cmd "python3")) + ;; (setq lsp-pyright-python-executable-cmd "python3")) (defun lsp-pyright-format-buffer () "Use `yapf' to format the buffer." @@ -141,9 +141,7 @@ (when-let* ((xrefs (lsp--locations-to-xref-items (lsp--send-execute-command (symbol-name command) arguments)))) (xref--show-xrefs xrefs nil))) - (advice-add #'lsp-execute-command :override #'my-lsp-execute-command))) - - ) + (advice-add #'lsp-execute-command :override #'my-lsp-execute-command)))) (provide 'init-lsp) diff --git a/lisp/init-org.el b/lisp/init-org.el index c027594..29620c4 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -103,7 +103,7 @@ the element after the #+HEADER: tag." (file+olp+datetree "diary.org") "* %U %?\n%i\n%a" :prepend t)) - org-todo-keyword + org-todo-keywords '((sequence "TODO(t)" "IN-PROGRESS(i)" "|" "DONE(d)" "NO(n)"))) (add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t))) @@ -256,4 +256,7 @@ the element after the #+HEADER: tag." (use-package org-download :after org) +(use-package valign + :hook (org-mode . valign-mode)) + (provide 'init-org)