aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-07-15 01:02:58 +0800
committerGuangxiong Lin <[email protected]>2022-07-15 11:47:28 +0800
commitc2c53aec3c3369a314008146b654fff7743ada5b (patch)
tree392283b1185631b0036dd54c9c20e8a94cb332b8 /.emacs.d
parenta385b4ab42c56208d36c896faf28002a6aa0f215 (diff)
downloaddotfiles-c2c53aec3c3369a314008146b654fff7743ada5b.tar.gz
dotfiles-c2c53aec3c3369a314008146b654fff7743ada5b.tar.bz2
dotfiles-c2c53aec3c3369a314008146b654fff7743ada5b.zip
Update emacs config
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-git.el4
-rw-r--r--.emacs.d/lisp/init-org-roam.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el
index 931f678..04c0230 100644
--- a/.emacs.d/lisp/init-git.el
+++ b/.emacs.d/lisp/init-git.el
@@ -1,5 +1,7 @@
(when (gx/maybe-require-package 'magit)
- (autoload #'magit-status "magit-status" nil t))
+ (define-key global-map (kbd "C-x g") #'magit-status))
+
+(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)
(with-eval-after-load 'evil
(evil-define-key 'normal 'global
diff --git a/.emacs.d/lisp/init-org-roam.el b/.emacs.d/lisp/init-org-roam.el
index f460761..268c322 100644
--- a/.emacs.d/lisp/init-org-roam.el
+++ b/.emacs.d/lisp/init-org-roam.el
@@ -17,6 +17,7 @@
(kbd "<leader>in") 'org-roam-node-insert
(kbd "[d") 'org-roam-dailies-goto-previous-note
(kbd "]d") 'org-roam-dailies-goto-next-note))
+
(setq org-roam-directory (file-truename "~/words"))
(setq org-roam-db-gc-threshold most-positive-fixnum)
(setq org-roam-dailies-directory "journals/")
@@ -38,6 +39,7 @@
"* %?"
:target (file+head "%<%Y/%Y>.org"
"#+title: %<%Y>\n"))))
+(setq org-roam-node-display-template "${title} - ${file}")
;; roam ui
(when (gx/maybe-require-package 'org-roam-ui)