Compare commits
3 Commits
eb879a74b3
...
84e3c44cd9
Author | SHA1 | Date |
---|---|---|
|
84e3c44cd9 | |
|
1098fab11b | |
|
9a3bf288cc |
30
README.org
30
README.org
|
@ -1707,6 +1707,14 @@ completion function [[info:elisp#Minibuffer Completion][completing-read]]. List
|
||||||
(keymap-global-set "M-y" #'consult-yank-pop))
|
(keymap-global-set "M-y" #'consult-yank-pop))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** TODO Explore ~org-goto~ versus ~consult-org-heading~
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: sec:todo-org-goto
|
||||||
|
:END:
|
||||||
|
|
||||||
|
Explore in particular ~auto-isearch~ (looks powerfull) and ~org-occur~ (looks
|
||||||
|
mysterious) in the ~org-goto~ user interface.
|
||||||
|
|
||||||
** [[https://company-mode.github.io/][Company (info)]]
|
** [[https://company-mode.github.io/][Company (info)]]
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: sec:company-setup
|
:CUSTOM_ID: sec:company-setup
|
||||||
|
@ -2295,7 +2303,7 @@ of the [[info:org#Top][Org (info)]] manual.
|
||||||
:CUSTOM_ID: sec:setup-org
|
:CUSTOM_ID: sec:setup-org
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
I have split the initial [[https://orgmode.org/][Org-mode]] setup over several listings. Here, follows a
|
I have split the initial [[https://orgmode.org/][Org-mode]] setup over fifteen listings. Here, follows a
|
||||||
list detailing and motivating each listing:
|
list detailing and motivating each listing:
|
||||||
1. Listing [[lst:set-org-options]] handles basic [[https://orgmode.org/][Org-mode]] options.
|
1. Listing [[lst:set-org-options]] handles basic [[https://orgmode.org/][Org-mode]] options.
|
||||||
2. Listing [[lst:undo-org-ctags]] undoes ~org-ctags~. See [[https://list.orgmode.org/87mt43agk6.fsf@localhost/][org-ctags land grab]] for
|
2. Listing [[lst:undo-org-ctags]] undoes ~org-ctags~. See [[https://list.orgmode.org/87mt43agk6.fsf@localhost/][org-ctags land grab]] for
|
||||||
|
@ -4745,10 +4753,11 @@ it for this buffer is by typing {{{kbd(C-c C-e t U)}}} to export the it to a
|
||||||
:CUSTOM_ID: sec:which-function-mode
|
:CUSTOM_ID: sec:which-function-mode
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
The post [[https://codelearn.me/2024/02/02/emacs-which-function-mode.html][Emacs: which-function-mode]] claims that ~which-function-mode~ works in
|
Listing [[lst:setup-which-function-mode]] sets ~which-function-mode~ options. The
|
||||||
|
post [[https://codelearn.me/2024/02/02/emacs-which-function-mode.html][Emacs: which-function-mode]] claims that ~which-function-mode~ works in
|
||||||
~org-mode~. This is true in case all document headlines are simple, but is not
|
~org-mode~. This is true in case all document headlines are simple, but is not
|
||||||
true in case document headlines contain links. The code in listing
|
true in case document headlines contain links. The code in listing
|
||||||
[[lst:setup-which-function-mode]] has stolen ideas from the following links:
|
[[lst:define-for-which-func-functions]] has stolen ideas from the following links:
|
||||||
- [[https://list.orgmode.org/20240205.141235.268481480563517065.teika@gmx.com/][Show current org-mode headline in frame header]].
|
- [[https://list.orgmode.org/20240205.141235.268481480563517065.teika@gmx.com/][Show current org-mode headline in frame header]].
|
||||||
- [[https://emacs.stackexchange.com/questions/30894/][Show current org-mode headline in modeline]].
|
- [[https://emacs.stackexchange.com/questions/30894/][Show current org-mode headline in modeline]].
|
||||||
|
|
||||||
|
@ -4756,8 +4765,21 @@ true in case document headlines contain links. The code in listing
|
||||||
#+caption: Setup ~which-function-mode~.
|
#+caption: Setup ~which-function-mode~.
|
||||||
#+name: lst:setup-which-function-mode
|
#+name: lst:setup-which-function-mode
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+begin_src emacs-lisp -n :results silent
|
||||||
;; https://emacs.stackexchange.com/questions/30894/
|
(setopt which-func-modes '(emacs-lisp-mode org-mode pdf-view-mode))
|
||||||
|
|
||||||
|
;; It looks like `python-mode' does nothing when they it is an element
|
||||||
|
;; of `which-func-modes'.
|
||||||
|
|
||||||
|
;; (setopt which-func-modes t)
|
||||||
|
|
||||||
;; (setopt which-func-display 'header) ;; AFAIU, fails on my system.
|
;; (setopt which-func-display 'header) ;; AFAIU, fails on my system.
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+caption[Define functions for ~which-func-functions~]:
|
||||||
|
#+caption: Define functions for ~which-func-functions~.
|
||||||
|
#+name: lst:define-for-which-func-functions
|
||||||
|
#+begin_src emacs-lisp -n :results silent
|
||||||
|
;; https://emacs.stackexchange.com/questions/30894/
|
||||||
(defvar which-func-functions nil)
|
(defvar which-func-functions nil)
|
||||||
|
|
||||||
(defun which-func-org-function ()
|
(defun which-func-org-function ()
|
||||||
|
|
Loading…
Reference in New Issue