|
|
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) |
Zeile 1: |
Zeile 1: |
− | {{BenutzerSeitenNichtVeraendernWarnung|rdiez}}
| + | #REDIRECT [[Benutzer:Rdiez/PageRemoved]] |
− | | + | |
− | = Building emacs from source =
| + | |
− | | + | |
− | * Remove all other emacs versions from the system. <br/> Otherwise, you may get confused later on, when the wrong emacs version accidentally starts when double-clicking on some file.
| + | |
− | | + | |
− | * Download:
| + | |
− | | + | |
− | wget http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.gz
| + | |
− | tar -xzf emacs-24.4.tar.gz
| + | |
− | cd emacs-24.4
| + | |
− | | + | |
− | * Install dependencies:
| + | |
− | | + | |
− | # Satisfy most dependencies automatically.
| + | |
− | sudo apt-get install build-essential
| + | |
− | sudo apt-get build-dep emacs24
| + | |
− | | + | |
− | Apparently that does not satisfy the Xaw3d dependency:
| + | |
− | Does Emacs use -lXaw3d? no
| + | |
− | But I do not actually know what type of scroll bar or whatever that Xaw3d package is. If you know more, please [[Benutzer:rdiez|drop me a line]].
| + | |
− | | + | |
− | * Build:
| + | |
− | | + | |
− | ./configure --with-x-toolkit=gtk3 --prefix="$HOME/emacs-24.4-bin"
| + | |
− | make -j "$(( $(getconf _NPROCESSORS_ONLN) + 1 ))"
| + | |
− | make install
| + | |
− | | + | |
− | * Adjust your system:
| + | |
− | ** Change your $EDITOR shell variable.
| + | |
− | ** Create a KDE shortcut like this: <br/> "$HOME/emacs-24.4-bin/bin/emacs" %F
| + | |
− | ** The icon is here: <br/> $HOME/emacs-24.4-bin/share/icons/hicolor/scalable/apps
| + | |
− | ** Configure double-click file opening like this: <br/> /home/<user>/emacs-24.4-bin/bin/emacsclient --no-wait
| + | |
− | ** If you autostart emacs, adjust that too.
| + | |
− | ** If you have any scripts that use emacs or emacsclient, adjust them too.
| + | |