aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-08-13 14:21:01 +0800
committerGuangxiong Lin <[email protected]>2022-08-13 14:21:01 +0800
commite90a5f28f3afa7a51a97b18175a6b62365f55cf2 (patch)
tree811c5df181b35d9756b0822c22151340bf9aa540
parentc2c53aec3c3369a314008146b654fff7743ada5b (diff)
downloaddotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.tar.gz
dotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.tar.bz2
dotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.zip
Update emacs config
-rw-r--r--.emacs.d/lisp/init-eglot.el14
-rw-r--r--.emacs.d/lisp/init-org.el2
2 files changed, 10 insertions, 6 deletions
diff --git a/.emacs.d/lisp/init-eglot.el b/.emacs.d/lisp/init-eglot.el
index 8a04c84..d94d6d0 100644
--- a/.emacs.d/lisp/init-eglot.el
+++ b/.emacs.d/lisp/init-eglot.el
@@ -9,12 +9,14 @@
(with-eval-after-load 'evil
(evil-define-key 'normal 'eglot--managed-mode
- (kbd "gd") 'xref-find-definitions
- (kbd "gr") 'xref-find-references
- (kbd "gt") 'eglot-find-typeDefinition
- (kbd "K") 'eldoc-doc-buffer
- (kbd "gi") 'eglot-find-implementation
- (kbd "C-t") 'xref-pop-marker-stack))
+ (kbd "gd") #'xref-find-definitions
+ (kbd "gr") #'xref-find-references
+ (kbd "gt") #'eglot-find-typeDefinition
+ (kbd "K") #'eldoc-doc-buffer
+ (kbd "gi") #'eglot-find-implementation
+ (kbd "C-t") #'xref-pop-marker-stack
+
+ (kbd "<leader>rn") #'eglot-rename))
(setq eglot-autoreconnect t)
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el
index ccaf0b0..406624e 100644
--- a/.emacs.d/lisp/init-org.el
+++ b/.emacs.d/lisp/init-org.el
@@ -6,6 +6,8 @@
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(add-hook 'org-capture-after-finalize-hook 'org-save-all-org-buffers)
+(setq org-image-actual-width '(400))
+
;; evil
(when (gx/maybe-require-package 'evil-org)
(autoload #'evil-org-mode "evil-org" nil t)