diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-08-30 08:47:35 +0200 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-08-30 08:47:35 +0200 |
commit | 118a484bc672b1e8a799c0169c68525975d072cd (patch) | |
tree | 9ebe2baf559e3eed08f516548dc54b56f86d386c /org-zettelkasten.el | |
parent | dd4feae2111357d99dcde1919c1d72523cc5b68c (diff) | |
download | org-zettelkasten-118a484bc672b1e8a799c0169c68525975d072cd.tar.gz org-zettelkasten-118a484bc672b1e8a799c0169c68525975d072cd.zip |
Fix linting errors and suggestions from Melpa PR
Diffstat (limited to 'org-zettelkasten.el')
-rw-r--r-- | org-zettelkasten.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/org-zettelkasten.el b/org-zettelkasten.el index bd4b4b2..f5279ff 100644 --- a/org-zettelkasten.el +++ b/org-zettelkasten.el @@ -1,4 +1,4 @@ -;;; org-zettelkasten.el --- Helper functions to use Zettelkasten in `org-mode' -*- lexical-binding: t; -*- +;;; org-zettelkasten.el --- Helper functions to use Zettelkasten in org-mode -*- lexical-binding: t; -*- ;; Author: Yann Herklotz <yann@ymhg.org> ;; URL: https://github.com/ymherklotz/emacs-zettelkasten @@ -39,7 +39,7 @@ "Helper to work with zettelkasten notes." :group 'applications) -(defcustom org-zettelkasten-directory "~/Dropbox/zk" +(defcustom org-zettelkasten-directory (concat (file-name-directory user-init-file) "/org-zettelkasten") "Main zettelkasten directory." :type 'string :group 'org-zettelkasten) @@ -98,7 +98,7 @@ NEWHEADING: function used to create the heading and set the current (defun org-zettelkasten-create-branch () "Create a branching heading at a level lower than the current." (org-zettelkasten-org-zettelkasten-create - #'org-zettelkasten-branch-id #'(lambda () (org-insert-subheading "")))) + #'org-zettelkasten-branch-id (lambda () (org-insert-subheading "")))) (defun org-zettelkasten-create-dwim () "Create the right type of heading based on current position." @@ -137,7 +137,5 @@ NEWHEADING: function used to create the heading and set the current :lighter " org-zettelkasten" :keymap org-zettelkasten-minor-mode-map) -(add-hook 'org-mode-hook #'org-zettelkasten-mode) - (provide 'org-zettelkasten) ;;; org-zettelkasten.el ends here |