* Emacs Debugger Error when using org-defkey
@ 2020-10-13 10:11 Christopher Dimech
2020-10-14 6:45 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Dimech @ 2020-10-13 10:11 UTC (permalink / raw)
To: Help Gnu Emacs
I am tryong to set keybindings for dragging line backwards and forwards
using
org-def but emacs is complaining when I do "emacs --debug"
( org-defkey org-mode-map (kbd "C-t l b") 'org-drag-line-backward )
( org-defkey org-mode-map (kbd "C-t l f") 'org-drag-line-forward )
emacs --debug
Debugger entered--Lisp error: (void-function org-defkey)
(org-defkey org-mode-map (kbd "C-t l b") 'org-drag-line-backward)
eval-buffer(#<buffer *load*-254160> nil
"/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin-org..." nil t) ;
Reading at buffer position 3915
load-with-code-conversion("/home/hagbard/GAdmSw/GungaDin--1.0/el/gungad
in-org..." "/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin-org..." nil
nil)
load("/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin-org...")
eval-buffer(#<buffer *load*-555191> nil
"/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin.el" nil t) ; Reading
at buffer position 4649
load-with-code-conversion("/home/hagbard/GAdmSw/GungaDin--1.0/el/gungad
in.el" "/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin.el" nil nil)
load("/home/hagbard/GAdmSw/GungaDin--1.0/el/gungadin.el")
eval-buffer(#<buffer *load*> nil "/home/hagbard/.emacs" nil t) ;
Reading at buffer position 777
load-with-code-conversion("/home/hagbard/.emacs"
"/home/hagbard/.emacs" t t)
load("~/.emacs" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode
0x7e3b3d>) #f(compiled-function () #<bytecode 0x7e3b51>) t)
command-line()
normal-top-level()
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Emacs Debugger Error when using org-defkey
2020-10-13 10:11 Emacs Debugger Error when using org-defkey Christopher Dimech
@ 2020-10-14 6:45 ` Michael Heerdegen
0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2020-10-14 6:45 UTC (permalink / raw)
To: help-gnu-emacs
Christopher Dimech <dimech@gmx.com> writes:
> Debugger entered--Lisp error: (void-function org-defkey)
Yes, that function is not known to Emacs until you load Org. It's not
autoloaded.
If you only use this function only for org key bindings, simply wrap
your stuff into
(with-eval-after-load 'org
...)
Or do
(require 'org-keys)
or even
(require 'org)
depending on what else you need in your config files.
Regards,
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-14 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-13 10:11 Emacs Debugger Error when using org-defkey Christopher Dimech
2020-10-14 6:45 ` Michael Heerdegen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).