Skip to content

Commit

Permalink
Fix edit-mode map
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrogallo committed Sep 23, 2023
1 parent fc492db commit 24566c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ Implement waiting after editing the file like
#+begin_src emacs-lisp
(define-minor-mode papis-edit-mode
"General mode for editing papis files"
:keymap `(,(kbd "C-c C-c")
,(defun papis-edit-update-cache (folder)
(interactive (list default-directory))
(message "Updating the cache for %s" folder)
(papis--cmd (format "cache update --doc-folder %s"
folder))))
:keymap `((,(kbd "C-c C-c") .
,(defun papis-edit-update-cache (folder)
(interactive (list default-directory))
(message "Updating the cache for %s" folder)
(papis--cmd (format "cache update --doc-folder %s"
folder)))))

(defvar-local papis-edit-mode-id nil))

Expand Down
12 changes: 6 additions & 6 deletions papis.el
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@
;; [[file:README.org::*=papis-edit=][=papis-edit=:1]]
(define-minor-mode papis-edit-mode
"General mode for editing papis files"
:keymap `(,(kbd "C-c C-c")
,(defun papis-edit-update-cache (folder)
(interactive (list default-directory))
(message "Updating the cache for %s" folder)
(papis--cmd (format "cache update --doc-folder %s"
folder))))
:keymap `((,(kbd "C-c C-c") .
,(defun papis-edit-update-cache (folder)
(interactive (list default-directory))
(message "Updating the cache for %s" folder)
(papis--cmd (format "cache update --doc-folder %s"
folder)))))

(defvar-local papis-edit-mode-id nil))

Expand Down

0 comments on commit 24566c2

Please sign in to comment.