Search code examples
emacsorg-modekey-bindings

Stop org-mode from remapping key bindings


I have a macro I'd like to have at C+', and org-mode remaps this to org-cycle-agenda-files for any .org buffer, any idea to to prevent this?


Solution

  • I used to have :

      (defun org-mode-is-intrusive ()
        ;; Make something work in org-mode:
        ;; (local-unset-key (kbd "something I use"))
        (local-unset-key (kbd "C-'"))
        )
      (add-hook 'org-mode-hook 'org-mode-is-intrusive)
    

    in my .emacs to deal with such annoyances.