Re: [Question] why my org-link-set-parameters :face function does not work?

2020-05-20 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John Kitchin writes: > On Tue, May 19, 2020 at 6:51 PM stardiviner wrote: > >> I actually borrowed code from your code example, Because I want to do the >> following: >> > > Where did you find code that uses org-element-property on a link like

Re: [Question] why my org-link-set-parameters :face function does not work?

2020-05-20 Thread John Kitchin
On Tue, May 19, 2020 at 6:51 PM stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > John Kitchin writes: > > > The face function only takes the link path, which is a string. you cannot > > use org-element-property on it. > > > > Maybe you want something like this: > > >

Re: [Question] why my org-link-set-parameters :face function does not work?

2020-05-19 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John Kitchin writes: > The face function only takes the link path, which is a string. you cannot > use org-element-property on it. > > Maybe you want something like this: > > #+begin_src emacs-lisp > (defun org-link-beautify-face (path) > "Set

Re: [Question] why my org-link-set-parameters :face function does not work?

2020-05-19 Thread John Kitchin
The face function only takes the link path, which is a string. you cannot use org-element-property on it. Maybe you want something like this: #+begin_src emacs-lisp (defun org-link-beautify-face (path) "Set link face colors." (message "beautifying") (if (and (not (file-remote-p path))