From 4d9ddb8269bbae9ee52d17b5d2ca30745220fe25 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 5 Jul 2023 20:43:34 +1000 Subject: some minor changes --- emacs/.emacs.d/init/ycp-editing.el | 2 +- emacs/.emacs.d/init/ycp-org.el | 3 +++ emacs/.emacs.d/init/ycp-vc.el | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init') diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el index 87e42c0..1300ccb 100644 --- a/emacs/.emacs.d/init/ycp-editing.el +++ b/emacs/.emacs.d/init/ycp-editing.el @@ -77,7 +77,7 @@ (advice-add 'find-file-other-window :around 'my-find-file-line-number) ) -(my-package new-comment +(my-package newcomment (add-to-list 'safe-local-variable-values '((comment-style . extra-line) (comment-continue . " ")))) diff --git a/emacs/.emacs.d/init/ycp-org.el b/emacs/.emacs.d/init/ycp-org.el index 25a8a2a..5918513 100644 --- a/emacs/.emacs.d/init/ycp-org.el +++ b/emacs/.emacs.d/init/ycp-org.el @@ -110,6 +110,9 @@ (add-hook 'before-save-hook #'my-org-update-updated) ) +(my-package org-duration + (my-setq-from-local org-duration-units)) + (my-package org-goto (setq org-goto-interface 'outline-path-completion) ) diff --git a/emacs/.emacs.d/init/ycp-vc.el b/emacs/.emacs.d/init/ycp-vc.el index 57de6f1..4513d45 100644 --- a/emacs/.emacs.d/init/ycp-vc.el +++ b/emacs/.emacs.d/init/ycp-vc.el @@ -71,6 +71,7 @@ (setq ediff-make-buffers-readonly-at-startup nil) (setq ediff-show-clashes-only t) (setq ediff-split-window-function 'split-window-horizontally) + (add-hook 'ediff-before-setup-hook 'my-select-new-frame) (setq ediff-combination-pattern '("<<<<<<< A: HEAD" A "||||||| Ancestor" Ancestor @@ -119,6 +120,9 @@ (require 'magit-repos) (my-setq-from-local magit-repository-directories) (put 'magit-clean 'disabled nil) + + (require 'magit-ediff) + (add-hook 'magit-ediff-quit-hook 'delete-frame) ) (my-package my-magit -- cgit v1.2.3