29
votes
How to start Emacs from the Terminal window as a GUI application (macOS)
According to Emacswiki "Homebrew has Emacs 26.1 as of January 2019" and "Homebrew now recommends to use the cask version".
The message that Homebrew gives is "Please try the ...
14
votes
Accepted
Emacsclient: One single emacs process all the time from start up & never close & better hide GUI
I do this by starting an emacs daemon when I login. Where you put this command depends on your desktop manager. I use i3, which is configured to run a script on login that includes the following:
...
8
votes
Accepted
something changes the default face in my .emacs
"Who's playing behind my back?" with respect to the most common choice of installing the GTK gui version of Emacs.
The GTK build of Emacs supports GConf settings, which is what is causing the font ...
5
votes
Accepted
resize Emacs (GUI) window to exactly half the screen?
Reading C-h f set-frame-width as mentioned by user @lawlist, I saw a mention of frame-resize-pixelwise. Putting this in .emacs.d/init.el
(setq frame-resize-pixelwise t)
makes the window "snap" to ...
5
votes
Accepted
How to start Emacs from the Terminal window as a GUI application (macOS)
Did you follow the install instructions in the wiki?
http://wikemacs.org/wiki/Installing_Emacs_on_OS_X
Basically, you need to install it with cocoa, it adds the GUI support.
$ brew install emacs --...
4
votes
Accepted
Use pkexec to run emacs in GUI mode with root privileges or any other way to do that
An alternative, to pkexec emacs or sudo emacs, would be to run emacs as normal user and work with tramp-mode to access files.
tramp-mode enables you to open files with root rights using access ...
4
votes
Emacsclient: One single emacs process all the time from start up & never close & better hide GUI
If you are using an operating system that uses the systemd service manager (which nowadays includes most GNU/Linux distributions), then the best solution might be to use systemd to start your Emacs ...
3
votes
Command to invoke menu-bar's open-file?
find-file uses the minibuffer or the GTK+ dialog depending on what next-read-file-uses-dialog-p returns. So you can force the dialog by overriding this function:
(defun vf-find-file-with-dialog ()
(...
3
votes
Accepted
Change prompt style to minibuffer from GUI dialogs
This is controlled through the use-dialog-box variable. Either put this in your init file:
(setq use-dialog-box nil)
or use the Customize interface.
2
votes
resize Emacs (GUI) window to exactly half the screen?
Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:
(let ((frame (selected-frame))
(one-half-display-pixel-width (/ (...
2
votes
Accepted
"inspect element" for GUI elements?
The two scenarios are different, but C-uC-x= calls (with a prefix argument) what-cursor-position which may help you -- it will tell you a lot of information about the character at point, including the ...
1
vote
Weird behavior: GUI won't start, but terminal emacs will
I've figured it out! It turns out there was a problem in my ~/.Xresources file preventing it from loading.
1
vote
Command to invoke menu-bar's open-file?
You ask about initiation of the selection by M-x. I don't know whether there is a simple way to cause use of the dialog box even when you do not use a menu or tool-bar button (typically initiated with ...
1
vote
resize Emacs (GUI) window to exactly half the screen?
Functions moom-fill-left and moom-fill-right in moom package resizes the frame to exactly half of the screen:
https://github.com/takaxp/moom
1
vote
Can Emacs 25 use the new macOS Sierra tab features?
For completeness, this is now available in railwaycat's Mac port with mac-toggle-tab-bar which seems to have a default binding of C-S-tab.
1
vote
Can Emacs 25 use the new macOS Sierra tab features?
I use elscreen for tabs. I don't think you have to rely on the OS to get tabs.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gui × 16osx × 4
key-bindings × 2
frames × 2
start-up × 2
gui-emacs × 2
prompt × 2
init-file × 1
debugging × 1
faces × 1
emacsclient × 1
themes × 1
terminal-emacs × 1
minibuffer × 1
find-file × 1
isearch × 1
mouse × 1
popup × 1
gtk3 × 1
menus × 1
keyboard × 1
scroll-bars × 1
mac × 1