瀏覽代碼

remember-projectile

master
10sr 5 年之前
父節點
當前提交
7655dd6227
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      emacs.el

+ 12
- 0
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


Loading…
取消
儲存