Files
.emacs.d/modules/navigation/siren-recursive-narrow.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

30 lines
868 B
EmacsLisp

;;; siren-recursive-narrow.el --- jimeh's Emacs Siren: recursive-narrow configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for recursive-narrow.
;;; Code:
(use-package recursive-narrow
:general
("C-x C-n" 'recursive-narrow-or-widen-dwim)
("C-x n w" 'recursive-widen)
("C-x n n" 'recursive-narrow-or-widen-dwim)
:config
(add-hook 'recursive-narrow-dwim-functions
'siren-recursive-narrow-org-edit-src-code)
(add-hook 'recursive-narrow-dwim-functions
'siren-recursive-narrow-markdown-edit-code-block)
:preface
(defun siren-recursive-narrow-org-edit-src-code()
(ignore-errors (org-edit-src-code) t))
(defun siren-recursive-narrow-markdown-edit-code-block()
(ignore-errors (markdown-edit-code-block) t)))
(provide 'siren-recursive-narrow)
;;; siren-recursive-narrow.el ends here