Hot answers tagged

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 ...
user avatar
  • 399
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: ...
user avatar
  • 20.1k
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 ...
user avatar
  • 8,783
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 ...
user avatar
  • 1,045
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 --...
user avatar
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 ...
user avatar
  • 4,211
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 ...
user avatar
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 () (...
user avatar
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.
user avatar
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 (/ (...
user avatar
  • 17.6k
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 ...
user avatar
  • 43.1k
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.
user avatar
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 ...
user avatar
  • 69.2k
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
user avatar
  • 959
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.
user avatar
  • 153
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.
user avatar

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