Re: Disabling automatic links for timestamps and tags
Peter Bienstman writes: > Thanks! Is there a way to achieve this while still keeping the syntax > highlighting intact? I'm not aware of a built-in option to do that. If you want to come up with a custom solution, the code to study is org-set-font-lock-defaults, which in turn calls org-activate-tags and org-activate-dates. You could override -activate-tags and -activate-dates to not apply the mouse-face and keymap properties. Or perhaps just remove them afterwards: (defun my/org-discard-mouse ( _) (remove-text-properties (match-beginning 1) (match-end 1) '(mouse-face nil keymap nil)) t) (advice-add 'org-activate-tags :after-while #'my/org-discard-mouse) (advice-add 'org-activate-dates :after-while #'my/org-discard-mouse)
Re: Disabling automatic links for timestamps and tags
Thanks! Is there a way to achieve this while still keeping the syntax highlighting intact? On Sun, Oct 11, 2020 at 7:23 AM Kyle Meyer wrote: > Peter Bienstman writes: > > > I don't want clicking on timestamps and tags to open a search Window. > > You can customize org-highlight-links. For example, assuming you have > seq and org loaded: > > (setq org-highlight-links > (seq-remove (lambda (x) (memq x '(tag date))) > org-highlight-links)) >
Re: Disabling automatic links for timestamps and tags
Peter Bienstman writes: > I don't want clicking on timestamps and tags to open a search Window. You can customize org-highlight-links. For example, assuming you have seq and org loaded: (setq org-highlight-links (seq-remove (lambda (x) (memq x '(tag date))) org-highlight-links))
Re: Disabling automatic links for timestamps and tags
I don't want clicking on timestamps and tags to open a search Window. On Sat, 10 Oct 2020, 17:33 Kyle Meyer, wrote: > Peter Bienstman writes: > > > How can I prevent orgmode from turning timestamps and tags into links? > > Could you provide a minimal example that demonstrates that behavior > you're referring to? >
Re: Disabling automatic links for timestamps and tags
Peter Bienstman writes: > How can I prevent orgmode from turning timestamps and tags into links? Could you provide a minimal example that demonstrates that behavior you're referring to?