From 7655dd622761f12d9da7b96f96933c1c91402adf Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 15 May 2019 14:05:36 +0900 Subject: [PATCH] remember-projectile --- emacs.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/emacs.el b/emacs.el index fd59331..e020a19 100644 --- a/emacs.el +++ b/emacs.el @@ -2244,6 +2244,18 @@ Any output will be written to current buffer." ;;;;;;;;;;;;;;;;;;;; ;; remember-projectile +;; TODO: Add global-minor-mode +(defvar remember-data-file) +(defun my-set-remember-data-file-buffer-local () + "Set `remember-data-file'." + (when (require 'projectile nil t) + (setq-local remember-data-file + (expand-file-name ".remember.notes" + (projectile-project-root))))) + +(add-hook 'after-change-major-mode-hook + 'my-set-remember-data-file-buffer-local) + ;; Local Variables: ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-checker: emacs-lisp