When I open a new file I want it to pop-up in a new frame. I've set pop-up-frames
to t
, but it still opens files that I double-click in Finder in existing buffers which results in other buffers being hidden.
If you're using emacsclient, opening files with
emacsclient -c
will open a new frame for each file. Not sure how this would work on OS X, but in XFCE I can set such a command for a filetype.
I have switched from the brew formula railwaycat/emacsmacport/emacs-mac
to standard emacs using brew install emacs --with-cocoa --with-gnutls --with-imagemagick --with-librsvg --with-mailutils
, which compiles with the --with-ns
switch per default (which the other port apparently does not contain). This required fixing up a few things such as the modifier keys. I'm also missing the Emoji & Symbols menu entry and the pixel-wise smooth scrolling, but I think I will get used to it.
find-file-other-frame
. You can call it withC-x 5 f
or remap this function toC-x C-f
. – Nsukami _ Dec 9 '15 at 22:27ns-find-file
. See the following related thread, which includes an example for OSX -- just remove the comment semi-colons before;; (defalias 'ns-find-file 'db-ns-find-file)
in the answer -- How to intercept a file before it opens and decide which frame -- stackoverflow.com/questions/18346785/… – lawlist Dec 24 '15 at 16:13ns-pop-up-frames
tofresh
as described here (along with some more potentially useful information): gnu.org/software/emacs/manual/html_node/emacs/… I am not sure if it will work, but it sounds like the behavior you are looking for – elethan Dec 24 '15 at 19:08