I'm trying unbind org-cycle-agenda-files
which is set by default to C-'
and C-,
.
My weapon of choice to do so is use-package package.
On github.com/use-package/bind-key.el page I have found following lines:
;; To unbind a key within a keymap (for example, to stop your favorite major
;; mode from changing a binding that you don't want to override everywhere),
;; use `unbind-key':
;;
;; (unbind-key "c-c x" some-other-mode-map)
This resulted in me unsuccessfully trying following variations:
(unbind-key "C-'" )
(unbind-key "C-," )
(unbind-key "C-'" (org-cycle-agenda-files))
(unbind-key "C-," (org-cycle-agenda-files))
(bind-keys :map org-mode-map
:unbind "C-'")
(unbind-key "C-'" org-cycle-agenda-files)
After that fail I triyed some "traditional" solution to the problem.
Information found in gnu.org manual, and some emacs.stackexchange answers resulted in me producing following useless havoc:
(define-key (org-cycle-agenda-files) key nil)
(define-key (current-global-map) "C-'" nil)
(local-unset-key "C-'")
(global-unset-key "C-'")
(with-eval-after-load org-mode
(unbind-key "C-'" org-mode-map)
(unbind-key "C-," org-mode-map))
(global-set-key (kbd "C-'") 'nil)
Yep.... None these variations vorks. :D
I would love to find use-package based solution, since I'm already using some of it's awesome capabilities.
Any kind of suggestion is welcome.