ubuntuにemacs24をいれる

Ubuntu 12.04にGNU Emacs 24.3.1を入れたときのメモ

add-apt-repositoryでPersonal Package Archive(PPA)を登録

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:cassou/emacs
You are about to add the following PPA to your system:
 NEWS: While we wait for someone to take over Julien Danjou's work, you can use this PPA https://launchpad.net/~ubuntu-elisp/+archive/ppa/. If you want to know more about the differences between the 2 PPAs, read http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00294.html. Another difference not discussed in previous link is that ~ubuntu-elisp provides daily builds while I provide bimonthly builds. Daily builds look great in theory, but require daily update of your system and daily restart of Emacs.

NEWS: Julien Danjou stops the maintainance of emacs-snapshot Debian builds. As a result, there won't be any update of emacs-snapshot until a solution is found. http://emacs.naquadah.org

BUG: if you experience a bug with accented characters, please see https://bugs.launchpad.net/emacs-snapshot/+bug/1251176

- emacs24 will be updated only when I change the build process or when new emacs24 versions are realeased
- emacs-snapshot is updated between once every two weeks on average. These versions are created from those of Julien Danjou for Debian unstable: http://emacs.naquadah.org.

To build this PPA, I created this script: https://gist.github.com/2360655

Please report bugs to https://bugs.launchpad.net/emacs-snapshot/, but before reporting, please follow these steps that will ensure a clean installation:

$ sudo apt-get update
$ sudo apt-get install
$ sudo apt-get purge emacs emacs-snapshot-common emacs-snapshot-bin-common emacs-snapshot emacs-snapshot-el emacs-snapshot-gtk emacs23 emacs23-bin-common emacs23-common emacs23-el emacs23-nox emacs23-lucid auctex apel emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg emacs24-el

To add this PPA:
$ sudo add-apt-repository ppa:cassou/emacs
$ sudo apt-get update

Then, for emacs-snapshot:
$ sudo apt-get install emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot

*Or*, for emacs24:
$ sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg
 More info: https://launchpad.net/~cassou/+archive/emacs
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp2YtoiB/secring.gpg' created
gpg: keyring `/tmp/tmp2YtoiB/pubring.gpg' created
gpg: requesting key CEC45805 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp2YtoiB/trustdb.gpg: trustdb created
gpg: key CEC45805: public key "Launchpad PPA for Damien Cassou" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


ppaを登録したらapt-get updateしてインストールできるようになる。

$ sudo apt-get update
$ sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg
$ emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.


私的メモ

$ sudo apt-get install zsh git subversion mercurial cmigemo
$ git clone https://github.com/yuhei0718/dot.emacs.d.git ~/.emacs.d
$ emacs

open-junk-fileのインストールで失敗するのでel-get-emacswiki-refreshしてからやりなおす


参考 : 第46回 PPAの活用:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
関連 : All newest Emacs versions, always : Damien Cassou