another hack to get ~/x/notes/z/ to be more usable: add string descriptor
This commit is contained in:
parent
5ce5a5e701
commit
cd69c9af55
1 changed files with 2 additions and 2 deletions
|
|
@ -205,14 +205,14 @@ NOTE: this searches in the current project root only.
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; shell integration
|
||||
|
||||
(defun um-next-file-shell (dir &optional header)
|
||||
(defun um-next-file-shell (dir &optional descriptor header)
|
||||
"Calls um next in the provided dir.
|
||||
|
||||
With the option not to leave behind the um-journal-header.
|
||||
"
|
||||
(let ((default-directory dir))
|
||||
;; https://emacs.stackexchange.com/a/19878
|
||||
(eval (car (read-from-string (shell-command-to-string "export UMNEXTECHO=true; um next"))))
|
||||
(eval (car (read-from-string (shell-command-to-string (concat "export UMNEXTECHO=true; um next" descriptor)))))
|
||||
;; HACK: so that the um-journal-header doesn't
|
||||
;; leave the file modified.
|
||||
(unless header
|
||||
|
|
|
|||
Loading…
Reference in a new issue