summaryrefslogtreecommitdiffstats
path: root/org-zettelkasten.el
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-08-30 08:47:35 +0200
committerYann Herklotz <git@yannherklotz.com>2021-08-30 08:47:35 +0200
commit118a484bc672b1e8a799c0169c68525975d072cd (patch)
tree9ebe2baf559e3eed08f516548dc54b56f86d386c /org-zettelkasten.el
parentdd4feae2111357d99dcde1919c1d72523cc5b68c (diff)
downloadorg-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.el8
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