I came up with a elisp function, and tried to match a key to the file.
(defun loadtopics () "Load the topics.org file" (interactive) (load "../topics.org")) (global-set-key (kbd "C-c C-a") 'loadtopics)
The problem is it’s hard to find an unallocated key combination.
- Is there any easy way to find key combinations that are not assigned?
- What method do you use for assigning the key to elisp code you made?
- Is it possible to assign multiple control key, i.e ‘C-c C-a C-b C-x’ or similar?
The sequences beginning with C-c letter and F5 through F9 are reserved for users to rebind. No built in modes or 3rd party packages should be overriding those, so they are perfect for user specific global key bindings. See Key Binding Conventions in the emacs manual.