How to make a newfile-function opening the new file in a new frame?Org mode: How to tag and search the content of different text files?Enable visual-line-mode and org-indent-mode when opening org filescreating a second independent journal using org-journalMore detailed description of how to set-up org-file-apps for orgmode 9.0Cornell Note Taking SystemHow to save last Emacs session time and hostname to a log file on quit/closeHow to create a new org-mode file everyday automatically with contents from the previous file?Prevent Org mode from raising Emacs frame while exporting to PDFQuick Startup in Org-Mode?How to always show buffer in the new created frame?
What to look for in climbing shoes?
Do First Order blasters maintain a record of when they were fired?
What systems of robust steganography are out there?
Why hasn't the U.S. government paid war reparations to any country it attacked?
Why aren't globular clusters disk shaped
What do mathematicians mean when they say some conjecture can’t be proven using the current technology?
What is the superlative of ipse?
Animal Shelter Management C++
Ethical for a company to ask employees to move furniture on the weekend?
What's the phrasal verb for carbonated drinks exploding out of the can after being shaken?
Why run a service as a system user?
What do these three diagonal lines that cross through three measures and both staves mean, and what are they called?
Is this artwork (used in a video game) real?
Why isn't aluminium involved in biological processes?
Is the Warlock's Hexblade Curse unaffected by an Antimagic Field?
What's the meaning of こそ in this sentence?
Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?
Why did Spider-Man take a detour to Dorset?
Why are road bikes (not time trial bikes) used in many triathlons?
Why do legislative committees exist?
What is this old "lemon-squeezer" shaped pan
Sending a photo of my bank account card to the future employer
Can a pizza stone be fixed after soap has been used to clean it?
What are some symbols representing peasants/oppressed persons fighting back?
How to make a newfile-function opening the new file in a new frame?
Org mode: How to tag and search the content of different text files?Enable visual-line-mode and org-indent-mode when opening org filescreating a second independent journal using org-journalMore detailed description of how to set-up org-file-apps for orgmode 9.0Cornell Note Taking SystemHow to save last Emacs session time and hostname to a log file on quit/closeHow to create a new org-mode file everyday automatically with contents from the previous file?Prevent Org mode from raising Emacs frame while exporting to PDFQuick Startup in Org-Mode?How to always show buffer in the new created frame?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I use Emacs org-mode for note taking during philosophical dialogs. I make one new file for each idea encountered, using this code:
(defun myfun-create-note-file()
"Doc-string."
(interactive)
(find-file (format-time-string "C:/Users/myUser/notes/%Y-%m-%d--%H-%M-%S.txt"))
(insert "*note :tags: nn")
(global-set-key "C-cn" ' myfun-create-note-file)
However, when making several new files during one session, only the last one is visible in the Emacs frame. The rest of the files reside within the Emacs instance, and have to be visited by cycling through the open buffer list.
I would like to open every new file in a separate frame, of small size. How can I modify my code to do this?
org-mode
add a comment |
I use Emacs org-mode for note taking during philosophical dialogs. I make one new file for each idea encountered, using this code:
(defun myfun-create-note-file()
"Doc-string."
(interactive)
(find-file (format-time-string "C:/Users/myUser/notes/%Y-%m-%d--%H-%M-%S.txt"))
(insert "*note :tags: nn")
(global-set-key "C-cn" ' myfun-create-note-file)
However, when making several new files during one session, only the last one is visible in the Emacs frame. The rest of the files reside within the Emacs instance, and have to be visited by cycling through the open buffer list.
I would like to open every new file in a separate frame, of small size. How can I modify my code to do this?
org-mode
C-h f find-file-other-frame
and refs therein.
– NickD
7 hours ago
add a comment |
I use Emacs org-mode for note taking during philosophical dialogs. I make one new file for each idea encountered, using this code:
(defun myfun-create-note-file()
"Doc-string."
(interactive)
(find-file (format-time-string "C:/Users/myUser/notes/%Y-%m-%d--%H-%M-%S.txt"))
(insert "*note :tags: nn")
(global-set-key "C-cn" ' myfun-create-note-file)
However, when making several new files during one session, only the last one is visible in the Emacs frame. The rest of the files reside within the Emacs instance, and have to be visited by cycling through the open buffer list.
I would like to open every new file in a separate frame, of small size. How can I modify my code to do this?
org-mode
I use Emacs org-mode for note taking during philosophical dialogs. I make one new file for each idea encountered, using this code:
(defun myfun-create-note-file()
"Doc-string."
(interactive)
(find-file (format-time-string "C:/Users/myUser/notes/%Y-%m-%d--%H-%M-%S.txt"))
(insert "*note :tags: nn")
(global-set-key "C-cn" ' myfun-create-note-file)
However, when making several new files during one session, only the last one is visible in the Emacs frame. The rest of the files reside within the Emacs instance, and have to be visited by cycling through the open buffer list.
I would like to open every new file in a separate frame, of small size. How can I modify my code to do this?
org-mode
org-mode
asked 8 hours ago
myotismyotis
3432 silver badges18 bronze badges
3432 silver badges18 bronze badges
C-h f find-file-other-frame
and refs therein.
– NickD
7 hours ago
add a comment |
C-h f find-file-other-frame
and refs therein.
– NickD
7 hours ago
C-h f find-file-other-frame
and refs therein.– NickD
7 hours ago
C-h f find-file-other-frame
and refs therein.– NickD
7 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Use find-file-other-frame
instead of find-file
:
find-file-other-frame is an interactive compiled Lisp function in
`files.el'.
(find-file-other-frame FILENAME &optional WILDCARDS)
Edit file FILENAME, in another frame.
Like M-x find-file (which see), but creates a new frame or reuses
an existing one. See the function ‘display-buffer’.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type M-n to pull it into the minibuffer.
Interactively, or if WILDCARDS is non-nil in a call from Lisp,
expand wildcards (if any) and visit multiple files.
Thanks, that made it :)
– myotis
6 hours ago
add a comment |
You say, "I would like to open every new file in a separate frame, of small size."
To always use a separate frame, by default, set option
pop-up-frames
tot
.To get frames that fit the buffer content (narrow, for narrow buffer lines, short, for short buffers), use libraries
fit-frame.el
andauto-fit-frame.el
. See Shrink-Wrapping Frames.
If you instead want to always use the same size frame (instead of having the frame fit the buffer content) then customize option special-display-regexps
to a value that matches all buffer names, and then customize option special-display-frame-alist
to have the size etc. you want.
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "583"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f51633%2fhow-to-make-a-newfile-function-opening-the-new-file-in-a-new-frame%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use find-file-other-frame
instead of find-file
:
find-file-other-frame is an interactive compiled Lisp function in
`files.el'.
(find-file-other-frame FILENAME &optional WILDCARDS)
Edit file FILENAME, in another frame.
Like M-x find-file (which see), but creates a new frame or reuses
an existing one. See the function ‘display-buffer’.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type M-n to pull it into the minibuffer.
Interactively, or if WILDCARDS is non-nil in a call from Lisp,
expand wildcards (if any) and visit multiple files.
Thanks, that made it :)
– myotis
6 hours ago
add a comment |
Use find-file-other-frame
instead of find-file
:
find-file-other-frame is an interactive compiled Lisp function in
`files.el'.
(find-file-other-frame FILENAME &optional WILDCARDS)
Edit file FILENAME, in another frame.
Like M-x find-file (which see), but creates a new frame or reuses
an existing one. See the function ‘display-buffer’.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type M-n to pull it into the minibuffer.
Interactively, or if WILDCARDS is non-nil in a call from Lisp,
expand wildcards (if any) and visit multiple files.
Thanks, that made it :)
– myotis
6 hours ago
add a comment |
Use find-file-other-frame
instead of find-file
:
find-file-other-frame is an interactive compiled Lisp function in
`files.el'.
(find-file-other-frame FILENAME &optional WILDCARDS)
Edit file FILENAME, in another frame.
Like M-x find-file (which see), but creates a new frame or reuses
an existing one. See the function ‘display-buffer’.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type M-n to pull it into the minibuffer.
Interactively, or if WILDCARDS is non-nil in a call from Lisp,
expand wildcards (if any) and visit multiple files.
Use find-file-other-frame
instead of find-file
:
find-file-other-frame is an interactive compiled Lisp function in
`files.el'.
(find-file-other-frame FILENAME &optional WILDCARDS)
Edit file FILENAME, in another frame.
Like M-x find-file (which see), but creates a new frame or reuses
an existing one. See the function ‘display-buffer’.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type M-n to pull it into the minibuffer.
Interactively, or if WILDCARDS is non-nil in a call from Lisp,
expand wildcards (if any) and visit multiple files.
answered 7 hours ago
lawlistlawlist
11.5k1 gold badge14 silver badges71 bronze badges
11.5k1 gold badge14 silver badges71 bronze badges
Thanks, that made it :)
– myotis
6 hours ago
add a comment |
Thanks, that made it :)
– myotis
6 hours ago
Thanks, that made it :)
– myotis
6 hours ago
Thanks, that made it :)
– myotis
6 hours ago
add a comment |
You say, "I would like to open every new file in a separate frame, of small size."
To always use a separate frame, by default, set option
pop-up-frames
tot
.To get frames that fit the buffer content (narrow, for narrow buffer lines, short, for short buffers), use libraries
fit-frame.el
andauto-fit-frame.el
. See Shrink-Wrapping Frames.
If you instead want to always use the same size frame (instead of having the frame fit the buffer content) then customize option special-display-regexps
to a value that matches all buffer names, and then customize option special-display-frame-alist
to have the size etc. you want.
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
add a comment |
You say, "I would like to open every new file in a separate frame, of small size."
To always use a separate frame, by default, set option
pop-up-frames
tot
.To get frames that fit the buffer content (narrow, for narrow buffer lines, short, for short buffers), use libraries
fit-frame.el
andauto-fit-frame.el
. See Shrink-Wrapping Frames.
If you instead want to always use the same size frame (instead of having the frame fit the buffer content) then customize option special-display-regexps
to a value that matches all buffer names, and then customize option special-display-frame-alist
to have the size etc. you want.
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
add a comment |
You say, "I would like to open every new file in a separate frame, of small size."
To always use a separate frame, by default, set option
pop-up-frames
tot
.To get frames that fit the buffer content (narrow, for narrow buffer lines, short, for short buffers), use libraries
fit-frame.el
andauto-fit-frame.el
. See Shrink-Wrapping Frames.
If you instead want to always use the same size frame (instead of having the frame fit the buffer content) then customize option special-display-regexps
to a value that matches all buffer names, and then customize option special-display-frame-alist
to have the size etc. you want.
You say, "I would like to open every new file in a separate frame, of small size."
To always use a separate frame, by default, set option
pop-up-frames
tot
.To get frames that fit the buffer content (narrow, for narrow buffer lines, short, for short buffers), use libraries
fit-frame.el
andauto-fit-frame.el
. See Shrink-Wrapping Frames.
If you instead want to always use the same size frame (instead of having the frame fit the buffer content) then customize option special-display-regexps
to a value that matches all buffer names, and then customize option special-display-frame-alist
to have the size etc. you want.
edited 6 hours ago
answered 6 hours ago
DrewDrew
50.2k4 gold badges65 silver badges112 bronze badges
50.2k4 gold badges65 silver badges112 bronze badges
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
add a comment |
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
Thanks for valuable info! I will test it out.
– myotis
6 hours ago
add a comment |
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f51633%2fhow-to-make-a-newfile-function-opening-the-new-file-in-a-new-frame%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
C-h f find-file-other-frame
and refs therein.– NickD
7 hours ago