Hot answers tagged

26

The accepted answer does not work anymore since libxml2 will be installed inside the XCode directory. The solution is described here: https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/05/fixing-missing-headers-for-homebrew-in-mac-osx-mojave/ In short, Apple provides an installer that can put the librairies inside /usr/include. You can ...


15

Have a look at brew emacs recipe options with brew info emacs. It has this option: --devel Install development version 26.0.90 To replace your current emacs, run: brew unlink emacs brew uninstall emacs brew install emacs --devel --with-modules --with-cocoa --with-gnutls \ --with-librsvg --with-mailutils --with-imagemagick@6 brew linkapps The ...


14

With GNU Guix you can easily reuse the package definition for Emacs with a later tarball. guix build emacs --with-source=http://some/emacs/tarball.tar.xz Or to directly install it into your default profile: guix package -i emacs --with-source=http://some/emacs/tarball.tar.xz Emacs 24.5 is already available via Guix, so you'd just need to run guix ...


12

You can't install a previous version of a package in our current infrastructure. Even though Emacs’ built-in package manager now supports multiple versions of a package in recent releases, no popular package archive (i.e. MELPA Stable and Marmalade) actually keeps a backlog of previous releases. Emacs didn't support this for a long time, and now that it ...


10

The easiest way is to install use-package. (package-initialize) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (dolist (package '(use-package)) (unless (package-installed-p package) (package-install package))) Then (use-package paredit :ensure t) The :ensure t is what ensures that ...


10

Executing the command which emacs in your terminal should tell you where it is installed.


9

OS-X comes with emacs 22, which is several years out of date. One easy way to get a current emacs is by downloading from http://emacsformacosx.com/. This will give you package.


9

As @Drew noted, Emacs doesn't include this library so on Windows you need to install it separately. See the Emacs README.w32 section "Optional dependency libraries" for more information. As of Emacs 25 it looks like you can download the dependencies from the GNU FTP server (or a mirror). E.g. http://ftp.gnu.org/gnu/emacs/windows/emacs-25-x86_64-deps.zip ...


6

In the release log of emacs:(http://www.gnu.org/software/emacs/news/NEWS.24.5) * Installation Changes in Emacs 24.3 ** The default X toolkit is now Gtk+ version 3. If you don't pass `--with-x-toolkit' to configure, or if you use `--with-x-toolkit=gtk' or `--with-x-toolkit=yes', configure will try to build with Gtk+ version 3, and if that fails, try Gtk+ ...


6

Compiling from source is an option, of course (which may or may not be obvious to you). If you're willing to invest in learning how to do that, you'll be able to compile and use virtually any version of Emacs you're interested in (whether that's the latest stable release; one of the "pretest" builds for the next release; or the latest code from the source ...


6

The error message described in the question has previously been encountered by other fellow Emacs enthusiasts, and the recommended fix is to install OSX command line tools by running the following from the command line: xcode-select --install Here is the link to the Emacs development thread that described the above solution by Daniel Sutton: http://lists....


6

Unfortunately brew linkapps is now deprecated. You can use brew cask install emacs but it doesn't allow you to download emacs 26 as of 4/1/2018. EDIT: As Guilherme Salomé pointed out, now brew cask install emacs will install version 26.1. You can though download the build you want from https://emacsformacosx.com/builds.


5

Follow these directions for Ubuntu substituting 24.5 in the download step 5 and subsequent steps.


5

Instead of (defun yafolding/init-my-package () it should have been (defun yafolding/init-yafolding (), as pointed out in by cpaulik in the official support chat.


4

Probably emacs24-nox is the package you want instead.


4

It looks like Ubuntu is using it's own numbering system, 45.0ubuntu1 vs 24.4. This may be tricking dpkg into thinking that the Ubuntu version (which appears to be 24.3) is actually newer than your compiled 24.4. Debian (and thus Ubuntu) provides emacs in a number of different packages, to allow users to stick to a particular version, track the latest release,...


4

You can use el-get to install any specific revision of any package, from a git repo. (el-get-bundle git-timemachine :checkout "3.0") This will clone git-timemachine from github and checkout tag 3.0 and require git-timemachine.


4

The reason you were asked for your password was that apt-get install was being invoked to install the additional software (poppler and friends) needed by pdf-tools. 1) Is this typical? No -- the vast majority of elisp packages do not attempt to automatically install other system requirements. It's not uncommon for other system software to be required by ...


3

For Ubuntu distributions, you can install the ubuntu-elisp PPA. Currently it contains Emacs 25.0.50.2, from 2015-09-19. This is not the latest stable version, but I've found it to work well enough. To install: $ sudo apt-add-repository ppa:ubuntu-elisp/ppa $ sudo apt-get update $ sudo apt-get install emacs-snapshot Then run Emacs as emacs-snapshot ...


3

A current (at time of this comment) way to install the GUI version of Emacs (26.2 at this time) on macOS Mojave is with brew cask install emacs This will install Emacs.app package in to /Applications and setup links. You can launch Emacs via Spotlight or from terminal as expected.


3

In your case probably not. Linux distributions like Fedora (Ubuntu, Debian, Red Hat and so on) work with packages. The content of those packages are ready to use programms. Normaly you install them with a package manager. A package manager unpacks a package and copies its content to the correct location on your hard disk (and runs some helper skripts). ...


2

You can try downloading the ESS tgz file, unpack it in a directory of choice (for example, I put it in .emacs.d) and then add (load "~/.emacs.d/ess-15.09-2/lisp/ess-site") to your .emacs file. No need to recompile anything in this way.


2

One easy option is to change the default DESTDIR directly in the Makeconf.


2

Reviewing the variables Info-directory-list and Info-default-directory-list was very helpful. It turns out that I needed to add export INFOPATH=$INFOPATH:/usr/share/info to my ~/.bashrc, reboot my pc, and it works! Apparently Info-directory-list is created when emacs boots with the contents of INFOPATH, but I needed to restart my pc to get INFOPATH readable ...


2

I use gsrc for this. Just follow the instructions on the website - and be sure to read the manual. Basically, when you have a running gsrc you can type make -C gnu/emacs and the latest stable version of emacs will be downloaded and compiled for you, including some of the dependencies. I don't like the default configuration parameters that are used in ...


2

It's compiled with different compiler options to address performance issues. https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00284.html


2

package.el keeps track of the packages you asked to install (as opposed to those that are auto-installed as dependencies) in the custom variable package-selected-packages. So if you copy your ~/.emacs (in which Custom normally writes settings like that of package-selected-packages) to another system, all you should need to do is M-x package-install-selected-...


2

I use MS Windows, with prebuilt Emacs binaries. Unlike what @antonio says, I have a single HOME environment variable, and its location has nothing to do with Emacs. I create a Windows shortcut to the runemacs.exe file for a given Emacs release. I have dozens and dozens of Emacs builds on my laptop, and I have shortcuts to about a dozen of them. I use this ...


2

In Windows it is easy: you need to set two distinct $HOME folders to host the packages. For OSX the process should be as follows. After installing Emacs 24 and 25, in distinct folders, create two folders: home24 and home25. Create two scripts, run24: #!/bin/sh export HOME=path/to/home24 /path/to/24/emacs and run25: #!/bin/sh export HOME=path/to/home25 ...


2

Does this mean the package is duplicated? Probably. Though it's also possible to tell el-get to install packages via package.el. Use M-x el-get-describe to see the :type of the package, if it's elpa then that means el-get is listing the package.el installation, otherwise it's duplicated. Which installation takes precedence? Depends on the ...


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