Undo breaking change affecting `org-fill-paragraph' behavior

This commit is contained in:
Gerard Vermeulen 2023-06-09 18:30:17 +02:00
parent 47dfbd348b
commit 4f84f73865

View File

@ -2226,16 +2226,10 @@ unbind the `org-babel' interface functions when ACTIVE is nil."
#+name: lst:set-org-link-options
#+begin_src emacs-lisp -n :results silent
(with-eval-after-load 'ol
;; I prefer setting `org-link-descriptive' to `nil' over the hook
;; below to make `isearch' bearable when finding matches in links.
;; Setting `org-link-descriptive' to `nil' is a breaking change,
;; since it changes how `org-fill-paragraph' fills.
;; (add-hook 'isearch-mode-hook
;; (defun unset-org-link-descriptive ()
;; (when (and (derived-mode-p 'org-mode)
;; (bound-and-true-p org-link-descriptive))
;; (org-toggle-link-display))))
(setopt org-link-descriptive nil
;; Setting `org-link-descriptive' to `t' has caused worse `isearch'
;; behavior. Set `org-link-descriptive' interactively by calling
;; `org-toggle-link-display'.
(setopt org-link-descriptive t
org-link-file-path-type 'relative))
#+end_src