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 Cask for a better-supported Cocoa version".
I tried --with-cocoa myself in February 2019 and is not supported any more.
linkapps also doesn't work any more.
Use this command to ...
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:
emacs --daemon &
With that, emacs is always running in the background, and I open a new client with emacsclient -c -n, bound to a convenient keybinding in the ...
"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 change "behind your back". To disable GConf settings add this to your .emacs:
(define-key special-event-map [config-changed-event] 'ignore)
Prior to Emacs 25.1 ...
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 the right height in XFCE (haven't tried on my external monitor yet, so don't know if it gets the exact right width too); it also snaps to the right height when I ...
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 daemon on boot. You can do this by creating a file $HOME/.config/systemd/user/emacs.service with the following contents:
Description=Emacs text editor
Did you follow the install instructions in the wiki?
Basically, you need to install it with cocoa, it adds the GUI support.
$ brew install emacs --with-cocoa
If you are willing to use spacemacs, then they recommend installing emacs-plus.
$ brew tap d12frosted/emacs-...
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 methods like sudo, su, ssh, sftp and so on, see here.
For example use this C-x C-f //sudo:root@localhost:/etc/group RET to open systems group file.
tramp also ...
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 (/ (display-pixel-width) 2)))
(set-frame-width frame one-half-display-pixel-width nil 'pixelwise)
(set-frame-position frame 0 0))
FYI: Feature request #21415 ...
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 ()
;; `flet' is deprecated, but I don't know enough Emacs Lisp
;; to make the non-deprecated `cl-flet' work here.
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 a mouse). (But it's also not clear to me what M-x has to do with selecting a file, unless you mean M-x find-file or some such.)
Anyway, the reason the file ...