LoginSignup
13
9

More than 3 years have passed since last update.

【備忘録】Ubuntu 18.04 にEmacsをインストール。設定まで

Last updated at Posted at 2019-03-08

学生の頃からEmacs信者なので、新調したPCに早速Emacsをインストールしていきます。

環境

Ubuntu 18.04日本語Remix

Emacsのインストール

インストールはコマンドラインからかんたんにできます。

install
$ sudo apt install emacs

完了したら確認しておきましょう。

check
$ emacs --version
GNU Emacs 25.2.2
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

以上でインストールは完了です。

Emacsの設定

続いて、いくつか設定をしていきます。

一度emacsを起動すると、~/.emacs.dが生成されるので、ここに設定ファイルを作成していきましょう。

~/.emacs.el や~/.emacs.d/init.el 等、設置ファイルの方式はいくつかありますが(起動時の探索順序が異なるようです)、今回は~/.emacs.d/init.elを編集していきます。

edit
$ emacs ~/.emacs.d/init.el &

書き込む内容は、お好みでどうぞ。
スタートアップメニューの表示を取りやめたり、行番号を表示するようにしたり等、色々できます。

以下の記事に設定の記述方法がまとまっています。
Emacsのオススメ基本設定まとめ(.emacs.el)
(タイトルが.emacs.elとなっていますが、init.elに同様の記述をして問題ないです。)

以上、備忘録でした。

13
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
9