Emacs Plus formulae for the Homebrew package manager
Ruby
Switch branches/tags
Nothing to show
Latest commit cb6901d Sep 13, 2017 @Makohoek Makohoek committed with formula: add 24bit truecolor support
This is based on work of akorobov

See his gist:
https://gist.github.com/akorobov/2c9f5796c661304b4d8aa64c89d2cd00

Note: this does not work out of the box, need a bustom terminfo as
described below:

Upstream commit message/doc

Emacs 26.1 and later support direct color mode in terminals.  If Emacs
finds Terminfo capabilities @samp{setb24} and @samp{setf24}, 24-bit
direct color mode is used.  The capability strings are expected to
take one 24-bit pixel value as argument and transform the pixel to a
string that can be used to send 24-bit colors to the terminal.

There aren't yet any standard terminal type definitions that would
support the capabilities, but Emacs can be invoked with a custom
definition as shown below.

@example
$ cat terminfo-24bit.src

xterm-24bit|xterm with 24-bit direct color mode,
   use=xterm-256color,
   setb24=\E[48:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm,
   setf24=\E[38:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm,
xterm-24bits|xterm with 24-bit direct color mode,
   use=xterm-256color,
   setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
   setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,

$ tic -x -o ~/.terminfo terminfo-24bit.src

$ TERM=xterm-24bit emacs -nw
@end example

Currently there's no standard way to determine whether a terminal
supports direct color mode.  If such standard arises later on, support
for @samp{setb24} and @samp{setf24} may be removed.

Signed-off-by: Mattijs Korpershoek <mattijs.korpershoek@gmail.com>
Permalink
Failed to load latest commit information.
Formula formula: add 24bit truecolor support Sep 15, 2017
CONTRIBUTORS Update CONTRIBUTORS May 26, 2017
README.org formula: add 24bit truecolor support Sep 15, 2017

README.org

Emacs Plus

Emacs Plus is GNU Emacs formulae based on emacs formulae. The difference is that some of the options available from emacs formulae are enabled by default in emacs-plus and some new additional options are available for user.

Install

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus [options]

By default (without any addition options) this formula install Cocoa version of Emacs with support of gnutls, imagemagick, librsvg, libxml2, dynamic modules and multicolor fonts and Spacemacs icon. Please see the list of available options to disable any bit of default behaviour or add even more stuff.

In order to install without Spacemacs icon you should use following command.

$ brew install emacs-plus --without-spacemacs-icon

Options

To get list of all available options, call brew info emacs-plus. Here is relevant part from output of that command for your convenience.

==> Options
--with-24bit-color
	Experimental: build with 24 bit color support
--with-ctags
	Don't remove the ctags executable that Emacs provides
--with-dbus
	Build with dbus support
--with-mailutils
	Build with mailutils support
--with-natural-title-bar
	Experimental: use a title bar colour inferred by your theme
--with-no-title-bars
	Experimental: build with a patch for no title bars on frames (--HEAD has this built-in via undecorated flag)
--with-x11
	Experimental: build with x11 support
--without-cocoa
	Build a non-Cocoa version of Emacs
--without-gnutls
	Build without gnutls support
--without-imagemagick@6
	Build without imagemagick@6 support
--without-librsvg
	Build without librsvg support
--without-libxml2
	Build without libxml2 support
--without-modules
	Build without dynamic modules support
--without-multicolor-fonts
	Build without a patch that enables multicolor font support
--without-spacemacs-icon
	Build without Spacemacs icon by Nasser Alshammari
--HEAD
	Install HEAD version

Note that by default emacs-plus is builds Cocoa version of Emacs with gnutls, imagemagick, librsvg and dynamic modules support by default. Also it changes default GNU Emacs icon to Spacemacs icon. If you wish to change defaults, just use --without-FEATURE flag.

Note that --HEAD builds are not really supported. They may fail to install, they may crash at run time. Or even worse, the may work as expected. So use this option at your own risk. And feel free to open up issues you face, just remember that I am not close enough to Emacs development process to provide you much help with any arising issues.

Known Issues

Please checkout Issues page for a list of all known issues.

Acknowledgements

Many thanks to all contributors, everyone reporting issues and Sudarshan Wadkar for providing bottles for El Capitan.