Edit configuration files as you like. First of all, pay attention to the settings of the UI.
.emacs.d/:
- init.el # Main initialization file
config/:
- packages.org # Set packages for autoinstall on startup
- utils.org # Common library
- common.org # Common settings
- keybindings.org # Keybinding maps
- theme-gui.org # GUI theme settings
- theme-tty.org # TTY theme settings
- common-lisp-language.org # Settings for lisp-mode [ .lisp ]
- python-language.org # Settings for elpy-mode [ .py ]
- perl-language.org # Settings for cperl-mode [ .pm .pl ]
- rust-language.org # Settings for rustic-mode [ .rs ]
- assembler-language.org # Settings for gas-mode [ .asm ]
sudo emerge -av dev-vcs/git
sudo touch /etc/portage/package.use/app-editors
sudo echo "app-editors/emacs gpm ssl threads xpm zlib X gtk2 imagemagick jpeg png svg" \
> /etc/portage/package.use/app-editors
sudo emerge -av app-editors/emacs
sudo apt install git
sudo apt install emacs
sudo yum install git
sudo yum install epel-release
sudo yum install emacs
cd ~/
git clone https://github.com/SciBourne/.emacs.d.git
I give an example for Gentoo Linux with OpenRC init system. For other distribution see EmacsWiki.
sudo emerge -av app-emacs/emacs-daemon
sudo ln -s /etc/init.d/emacs /etc/init.d/emacs.<user-name>
sudo rc-update add emacs.<user-name> default
sudo rc-service emacs.<user-name> start
emacs --daemon=<server-name> # usage UNIX socket for comminication
emacsclient -t -s <server-name> # for TTY
emacsclient -c -s <server-name> # for GUI
- Download emax64-bin-26.3.7z
- Create a folder
C:\Program Files\GNU Emacs
and unpack this archive into it - Run file
C:\Program Files\GNU Emacs\bin\addpm.exe
as administrator for add Emacs shortcuts to the Start menu
You can use any of these app:
Run CMD, Power Shell or Windows Terminal as your user and run this commands:
cd "C:\User\<user-name>\AppData\Roaming"
git clone https://github.com/SciBourne/.emacs.d.git
Create the following variables:
HOME="C:\User\<user-name>\AppData\Roaming"
EMACS_DIR="C:\Program Files\GNU Emacs\bin"
ALTERNATE_EDITOR="C:\Program Files\GNU Emacs\bin\runemacs.exe"
EMACS_SERVER_FILE="C:\Users\<user-name>\AppData\Roaming\.emacs.d\server\server"
Create Emacs shortcuts:
-
GNU Emacs Daemon
with
--daemon
argument in Startup folder(shell:startup in explorer)
-
GNU Emacs Client
with
-c -n -a runemacs.exe
arguments in Programs folder(shell:programs in explorer)
-
GNU Emacs IDE
without arguments in Programs folder
(shell:programs in explorer)
Run PowerShell as your user and input this following code:
(to start the daemon after system boot)
$Startup = "$Home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Startup\GNU Emacs Daemon.lnk")
$Shortcut.TargetPath = "C:\Program Files\GNU Emacs\bin\runemacs.exe"
$Shortcut.Arguments = "--daemon"
$Shortcut.Save()
(for use as default text editor)
$Startup = "$Home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Startup\GNU Emacs Client.lnk")
$Shortcut.TargetPath = "C:\Program Files\GNU Emacs\bin\runemacs.exe"
$Shortcut.Arguments = "-c -n -a runemacs.exe"
$Shortcut.Save()
(full config support, usage GUI with treemacs and other packages for programming)
$Startup = "$Home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Startup\GNU Emacs IDE.lnk")
$Shortcut.TargetPath = "C:\Program Files\GNU Emacs\bin\runemacs.exe"
$Shortcut.Save()
Run windows-registry file as administrator:
C:\Users\<user-name>\AppData\Roaming\.emacs.d\emacs_explorer.reg