.. -*- coding: utf-8 -*- .. role:: sref(numref) .. role:: xref(numref) .. Copyright (C) 2026, Wolfgang Scherer, .. This file is part of Emacs Init. .. Permission is granted to copy, distribute and/or modify this document .. under the terms of the GNU Free Documentation License, Version 1.3 .. or any later version published by the Free Software Foundation; .. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. .. A copy of the license is included in the section entitled "GNU .. Free Documentation License". .. inline comments (with du_comment_role) .. role:: rem(comment) .. role:: html(raw) :format: html .. role:: shx(code) :language: sh .. rst-class:: narrow xmedium xlarge xhuge xultra ################################################## :rem:`|||:sec:|||`\ Org Mode Ate My Keyboard ################################################## .. . (progn (forward-line 1) (snip-insert "rst_b.peek-a-boo" t t "rst") (insert "")) .. >>CODD See `the components of a doctoral dissertation and their order `_ .. >>CODD Dedication .. >>CODD Epigraph .. >>CODD Abstract .. . |:here:| This is an edited AI response from `keep org mode from hijacking C-# - Google Search `__ To keep Org Mode from hijacking :kbd:`C-#` (or other keybindings, such as shift-cursor keys), you can customize how Org interacts with the keymap. The most common cause of this is Org trying to take control of keybindings for its own functionality (e.g., table editing or speed keys). Here are the ways to stop this behavior, specifically targeting :data:`org-disputed-keys`. 1. The Recommended Fix: :data:`org-disputed-keys` Add this to your :file:`init.el` or :file:`.emacs` file to tell Org mode not to hijack specific keys, allowing them to pass through to your system or other modes: .. code-block:: elisp (with-eval-after-load 'org ;; :kbd:`C-#` is the snippets/workspace multiplexer (define-key org-mode-map [(control ?#)] (make-sparse-keymap)) (define-key org-mode-map [(control ?#) (control ?#)] #'org-table-rotate-recalc-marks) ;; :kbd:`C-c #` is the snippets/workspace multiplexer (define-key org-mode-map [(control c) ?#] nil) (define-key org-mode-map [(control c) (control ?#)] #'org-update-statistics-cookies) ) *Alternatively*, if you are having issues with :kbd:`C-#` being used for :func:`org-table-rotate-recalc-marks`, you can specifically rebind that to something else, or use `nil` to unbind it entirely in :data:`org-mode-map`. 2. Disabling Org Speed Keys If :kbd:`C-#` is being interpreted as a "speed key" at the beginning of a headline, you can disable the speed keys feature: .. code-block:: elisp (setq org-use-speed-commands nil) 3. Handling Shift-Selection Conflicts If the issue involves :kbd:`C-S-#` or other shifted keys, you can tell Org to yield to other modes (like CUA mode) by customizing the :data:`org-replace-disputed-keys` variable: .. code-block:: elisp (setq org-replace-disputed-keys t) ;; Then define the mapping in org-disputed-keys if necessary 4. Direct Keybinding Removal To ensure Org mode does not bind that key at all, you can explicitly remove it from the map: .. code-block:: elisp (add-hook 'org-mode-hook (lambda () (define-key org-mode-map (kbd "C-#") nil))) After adding any of these, restart Emacs or evaluate the code (:kbd:`M-x eval-buffer`) to apply the changes. .. \|:here:| .. >>CODD Introduction .. >>CODD Chapter .. >>CODD Conclusion .. >>CODD Appendix A .. \|:here:| .. >>CODD Notes .. ================================================== .. :rem:`|||:sec:|||`\ Footnotes .. ================================================== :html:`
` .. \[#] .. \|:info:| put local definitions here .. include:: doc_defs.inc .. include:: abbrev_defs.inc .. include:: doc_defs_combined.inc .. .. \||<-snap->|| doc_standalone .. include:: doc/doc_defs_secret.inc .. \||<-snap->|| doc_standalone .. \||<-snap->|| not_doc_standalone .. include:: doc_defs_secret.inc .. \||<-snap->|| not_doc_standalone .. _`Wolfgang Scherer`: wolfgang.scherer@gmx.de