浏览代码

remember-projectile

master
10sr 5 年前
父节点
当前提交
7655dd6227
签署人:: 10sr GPG 密钥 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


正在加载...
取消
保存