Advertisement
mark-naylor-1701

org mode hacking

Apr 23rd, 2024
1,612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.54 KB | None | 0 0
  1. ;; org-mode kludges
  2. ;; This mode apparently remaps forward-sentence and backward-sentence, but only
  3. ;; for interactive. These wrappers will allow for key bindings to commands that
  4. ;; work as expected.
  5.  
  6. (defun wrap-forward-sentence (&optional prefix)
  7.   (interactive "p")
  8.   (forward-sentence prefix))
  9.  
  10. (defun wrap-backward-sentence (&optional prefix)
  11.   (interactive "p")
  12.   (backward-sentence prefix))
  13.  
  14.  
  15.  
  16. (define-key org-mode-map (kbd "C-c s f") #'wrap-forward-sentence)
  17. (define-key org-mode-map (kbd "C-c s b") #'wrap-backward-sentence)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement