4 ms·
Slightly off topic, but I love the Org-mode feature of [[A link description][file:~/my-file::a line in the file]] style links. Is there an easy way to get just
by istjohn 7y ago
Slightly off topic, but I love the Org-mode feature of [[A link description][file:~/my-file::a line in the file]] style links. Is there an easy way to get just that feature in all my files? I'd love to be able to have Org links in code comments, for example, but I don't want to use Org code blocks.
- ashton314 7y agoYes! You just have to bind the function `org-open-at-point-global` to a keystroke. This is what I have in my .emacs file: (global-set-key (kbd "C-c L") 'org-insert-link-global) (global-set-key (kbd "C-c O") 'org-open-at-point-global)
- istjohn 7y agoAwesome! Thank you! I'm new to Emacs, and the transition has been a bear, but things like this are well-worth the price of admission.
- aasasd 7y agoThe rumor is, there's an ‘org-protocol’ feature that allows any program on the system call actions of Org-mode. Presumably that either includes opening files, or would include if someone added such an action.