15

If you put the links in a file using org-mode (e.g. ending in .org), you can create links like this by: [[file:d:/path/to/filename with spaces]] I'm assuming you are on Windows, and this works for on Windows 8, Emacs 24.4.1.


14

Emacs offers goto-address-mode for making a number of things, including HTTP links, clickable.


13

If you use org-ref (https://github.com/jkitchin/org-ref), you can do this: #+caption: test label:some-source-code #+BEGIN_SRC python for i in 1:10: print i #+END_SRC See Listing ref:some-source-code This exports to PDF and HTML with active links.


13

I found the solution, Org-mode radio target can be used here. here is the doc: http://orgmode.org/org.html#Internal-links Like this: Here is a named table. #+NAME: my target | x | y | | 1 | 2 | I can reference it with its name. Like this: [[my target]] There are also table remote references further explained by an example in the following. First we ...


13

When in a certain buffer one can use M-x org-store-link to find the correct syntax for linking to that file. For linking to internal documentation you can use the following links: info:elisp#Introduction info:elisp The first will take you to the Elisp Intro, the second to the Reference Manual. Whenever you may wish to link to an info document, use the ...


9

The string behind :: is actually a search. In this context one understands the relevant comment in the source code of the function org-html-link in the library file ox-html.el (org 8.2.5). It says: ;; Add search option, if any. A search option can be ;; relative to a custom-id or a headline title. Any other ;; option is ignored. So, you can either ...


8

My orglink package does that. It "implements support for some Org Mode link types in other major modes. Links can be opened and edited like in Org Mode". These are some examples of links that it does and does not support: [[Code]] [[Code][start of code]] [[define-derived-mode orglink-mode][orglink-mode]] <mailto:jonas@bernoul.li> man:info <info:...


7

The history of visited nodes is stored in the variable Info-history-list. You will need to persist this variable across sessions. One way to do so it to use desktop-mode. Desktop mode automatically persists the variables that are declared in desktop-globals-to-save. So if you use desktop-mode something like the following should doe the trick (add-to-list '...


6

markdown-follow-thing-at-point (C-c C-o) and also markdown-follow-link-at-point will follow links. If you have a link like [filelink](/path/to/file.md) then calling one of the above functions while cursor is on the markdown link will take you to the file.


5

Try this #+NAME: some-source-code #+BEGIN_SRC python for i in 1:10: print i #+END_SRC Method 1 [[file:::some-source-code]] This should link back to some-source-code. Caveat: [[file:::some-source-code]] is performing a degenerate search and will look for <<some-source-code>> links before #+NAME: some-source-code. Method 2 [[file::...


5

@Iqbal gives a great answer to your question. You might also consider using bookmarks to record Info locations of interest, including a bookmark for where you left off (which you update at the next left-off place, by just setting it again). This is simple to do, and is exactly what you would do with a book or multiple books that you are reading.


5

Assuming the current buffer is an org-mode buffer, the following code collects paths of file links in the current buffer. (org-element-map (org-element-parse-buffer) 'link (lambda (link) (when (string= (org-element-property :type link) "file") (org-element-property :path link)))) In an org buffer, (org-element-parse-buffer) returns the parse ...


5

You can set up your own protocols in org-link-parameters with org-link-set-parameters. If you run (org-link-set-parameters "chrome" :follow (lambda (path) (browse-url-chrome (concat "http:" path)))) (org-link-set-parameters "chromes" :follow (lambda (path) (browse-url-chrome (concat "https:" path)))) (org-link-set-parameters "chromium" :follow (lambda (...


4

You want to look at C-h v mouse-1-click-follows-link RET, I think.


4

I plan on using one dictionary for everything, I'd prefer not to include the entire file for each document. I have this in my .emacs: (setq org-link-abbrev-alist '(("google" . "http://www.google.com/search?q=") ("dictionary" . "file:~/Brainbank/main/dictionary.org::"))) Then include a link to the file: [[dictionary:test][test]] It's not automated, and ...


4

I don't understand what you are hoping to get or expecting. I think if you have a description, you will get a hyperlink to the file, not the image itself. Of these two links, the first turns into the word test which is hyperlinked to the file, and the second is shown as the image in the pdf for me. #+latex_header: \usepackage[space]{grffile} [[file:emoji ...


4

The reason for the error is that you did not use the correct format to add a text property. quote from manual: Function: add-text-properties start end props &optional object The argument props specifies which properties to add. It should have the form of a property list (see Property Lists): a list whose elements include the property names followed ...


4

Use org-store-link to store the position of your current emacs buffer file and in your org file org-insert-link to insert the stored link. This prompts you with a selection of links and a query for the description to insert.


4

It's not 100% clear if you want only the ability to click on URLs, or if you want to change their faces in the buffer. For the former, you can use either browse-url as you suggest: https://www.google.com (global-set-key [mouse-1] #'browse-url) ; pick your preferred mouse button Or, if you just want it to open without having to confirm the URL, you could ...


3

So this may not be exactly what you want but it turns the section that is underneath your point into a link that should be shorter. (defun compress-org-link (arg) (interactive "P") (let ((url (thing-at-point 'url)) (bounds (bounds-of-thing-at-point 'url))) (kill-region (car bounds) (cdr bounds)) (insert (format "[[%s][%s]]" url (truncate-...


3

No, What you want probably isn't possible without some extreme customization. However, Org once again surprises me with how well the default behavior works, included files with links are treated the same as links within the file. (If you aren't familiar with the syntay, say you have the glossary in glossary.txt, add the line #+include: glossary.txt to the ...


3

One way to accomplish what you want is to wrap org-contacts with a special org-contacts-mode as demonstrated in the following. This new major mode defines the keys l and c as you specified it in its local keymap. You may paste the code into your .emacs file after (require 'org-contacts) or a suitable autoload. You can just call org-contacts instead of your ...


3

I'll answer your actual problem of modifying the action for following links with pdf-tools. The customizable option pdf-links-browse-uri-function holds a function that receives a string with the uri as an argument and should take the appropriate action, e.g., open the link in a browser. You can define your own function and register it there with M-x ...


3

The standard way to define clickable text is explained in the manual. put an appropriate face, e.g. link and the text property keymap on the link text. bind the follow-link event in that keymap to a function, e.g. arXivid-follow, that transforms the text into a link the function gets an event that leads you to the click position where you can extract the id ...


2

Starting from Org-Mode version 9.x. Thanks to John Kitchin's answer in Fontify broken links in org-mode, I applied different faces for id-links and file-links with a code similar to this: (defface org-link-id '((t :foreground "#50fa7b" :weight bold :underline t)) "Face for Org-Mode links starting with id:." ...


2

I hope this is not to send a bad signal. I will answer my own question once more. The comments are very helpful in guiding me, however I have to use both my 'knowledge' of my setup, my laziness, and the good suggestions to come up with the following solution. At first I thought bisecting as @Drew suggested is a tedious task. So I do M-x package-install RET ...


2

Well this has bugged me a lot too (I happen to find the Markdown syntax much more intuitive), and today I looked into the required changes to org.el and there's quite some work. There should be an org-angle-link-re in org-make-link-regexps similar to the other link types, And then it would need to be plumbed down everywhere: into org-any-link-re in that ...


2

If there were a general org export option to do so I would expect to see it documented here: http://orgmode.org/manual/Export-settings.html#Export-settings. Looking directly at the source I don't see an option in the markdown export engine to do so either. Some options: Quick-and-Dirty Solution™ If you are looking for the Quick-and-Dirty Solution™. You ...


2

You may consider putting your glossary in another format. For example, I use list definitions to accomplish what you are after, for example: * List of Acronyms - <<<ABI>>> :: Application Binary Interface - <<<API>>> :: Application Programming Interface - <<<DOR>>> :: Documentation Requirement :...


2

The function org-wiki-insert inserts a wiki: link of the form [[wiki:MyHeading][MyHeading]]. But, it's more convenient to use the built-in org-insert-link. For that we need two things: completions for the link target and a default description. For the first, we just need to define a function called org-wiki-complete-link and org-mode will pick it up for ...


Only top voted, non community-wiki answers of a minimum length are eligible