Skip to main content
added 2 characters in body; edited title
Source Link
crocefisso
  • 1.5k
  • 10
  • 22

How to open a file (from an org link) within current framewindow?

When I do C-c C-o on an org link it opens the org file in a new framewindow. This is fine, but sometimes I'd prefer to open org files within the current framewindow, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

How to open a file (from an org link) within current frame?

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files within the current frame, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

How to open a file (from an org link) within current window?

When I do C-c C-o on an org link it opens the org file in a new window. This is fine, but sometimes I'd prefer to open org files within the current window, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

edited title
Source Link
crocefisso
  • 1.5k
  • 10
  • 22

How to occasionally open a file (from an org link in) within current bufferframe?

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files inwithin the current bufferframe, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

How to occasionally open an org link in current buffer?

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files in the current buffer, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

How to open a file (from an org link) within current frame?

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files within the current frame, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

added 207 characters in body
Source Link
crocefisso
  • 1.5k
  • 10
  • 22

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files in the current buffer, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same windowOpen org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files in the current buffer, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

When I do C-c C-o on an org link it opens the org file in a new frame. This is fine, but sometimes I'd prefer to open org files in the current buffer, creating a new key binding for the matter (for example "C-c <C-return>").

I've tried to adapt some code I found on emacs.stackexchange, namely :

How to force Org-mode to open a link in another frame?

(defun zin/org-open-other-frame () "Jump to bookmark in another frame. See `bookmark-jump' for more." (interactive) (let ((org-link-frame-setup (acons 'file 'find-file-other-frame org-link-frame-setup))) (org-open-at-point))) 

and Open org link in the same window

(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) 

But my understanding of Elisp is so poor that I didn't manage to do it...

deleted 3 characters in body
Source Link
crocefisso
  • 1.5k
  • 10
  • 22
Loading
Source Link
crocefisso
  • 1.5k
  • 10
  • 22
Loading