Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emacs Environment

Installation

$ ./install.sh
#=> $HOME/.emacsenv
$ echo 'export PATH=$HOME/.emacsenv/bin:$PATH' >> .bashrc

Initial Emacs

$ emacsenv install emacs-25.1
# set build option
# CONFIGURE_OPT='--without-x --without-ns --with-modules' VERSION_NAME='emacs-25.1-with-modules' emacsenv install emacs-25.1
$ emacsenv global emacs-25.1-with-modules
$ emacs -Q .emacsenv/versions/emacs-25.1-with-modules/profiles/.emacs
#=> edit .emacs

Edit Profiles

$ eval $(emacsenv env 'export ')
$ emacs -Q $EMACS_HOME/profiles/.emacs

Run

emacsclient

$ emacsclient /path/to/file
# startup emacs-daemon
$ emacsclient -e '(kill-emacs)'

Shebang

elexec is the same as emacs env exec emacs --script

#!/usr/bin/env elexec
(princ emacs-version)

Fix $HOME

(getenv "HOME")
; "/home/m0cchi/.emacsenv/versions/emacs-27.0.90/profiles"
(getenv "USER_HOME")
; "/home/m0cchi"

add the following to /home/m0cchi/.emacsenv/versions/emacs-27.0.90/profiles/.emacs

(if (getenv "USER_HOME")
    (setenv "HOME" (getenv "USER_HOME")))

Shell Completion

bash

$ source /path/to/emacsenv/completions/bash/emacsenv
# or add to .bashrc:
$ echo 'source /path/to/emacsenv/completions/bash/emacsenv' >> ~/.bashrc

zsh

$ fpath=(/path/to/emacsenv/completions/zsh $fpath)
$ autoload -Uz compinit && compinit
# or add to .zshrc:
$ echo 'fpath=(/path/to/emacsenv/completions/zsh $fpath)' >> ~/.zshrc

plugins

About

Emacs environment

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages