Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in post-command-hook (org-add-log-note): (invalid-function "org-" #42

Open
dysdy opened this issue Jul 18, 2015 · 2 comments
Open

Comments

@dysdy
Copy link

dysdy commented Jul 18, 2015

Hi,

I am not sure if it is a new issue or not. I had tried to search from te issue list but not found.

If I enalbe both (org-log-done 'note) and ( (guide-key/add-local-highlight-command-regexp ("org-"."hot pink")) at the same time, when I close a Task in org-mode, it will meet a error (" Error in post-command-hook (org-add-log-note): (invalid-function "org-" ").
Ater I disabled ( (guide-key/add-local-highlight-command-regexp ("org-"."hot pink")) , there will be no problem.

I use Emacs 24.5.1 in windows and have not tried in Ubuntu.

Rgds,
-dys

@kai2nenobu
Copy link
Owner

How to enable (guide-key/add-local-highlight-command-regexp ("org-"."hot pink"))?
Please show here as is written in your init.el.

@dysdy
Copy link
Author

dysdy commented Jul 19, 2015

Here is the code about guide-key in my init file:

(require 'guide-key)
(guide-key-mode 1) ; Enable guide-key-mode

; (setq guide-key/guide-key-sequence '("C-x r" "C-x 4"))
; (setq guide-key/guide-key-sequence '("C-x"))

;;special setting for org-mode
(defun guide-key/my-hook-function-for-org-mode ()
(guide-key/add-local-guide-key-sequence "C-c")
(guide-key/add-local-guide-key-sequence "C-c C-x")
; (guide-key/add-local-highlight-command-regexp ("org-"."hot pink"));disalbed because of conflict with (setq org-log-don 'note)
)
(add-hook 'org-mode-hook 'guide-key/my-hook-function-for-org-mode)
;;end of special setting for org-mode
;;
;;another example for specific mode key sequences
(setq guide-key/guide-key-sequence
'("C-x r" "C-x 4" "C-x" "C-c"
;(org-mode "C-c C-x") ;disable this since we already define above
;(outline-minor-mode "C-c @")
(markdown-mode "C-c C-a")
))
;;end of another for specific mode key sequences
;;
;;set highlight color
(setq guide-key/highlight-command-regexp
'("rectangle"
; ("register" . font-lock-type-face)
; ("bookmark" . "hot pink"))
("org-"."pink")
("markdown-"."purple")
)
)

(setq guide-key/idle-delay 0.5)

(setq guide-key/recursive-key-sequence-flag t)
; (setq guide-key/guide-key-sequence t) ; for any keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants