LoginSignup
18
13

More than 5 years have passed since last update.

GNU Emacs for MacOS XをTerminal中で起動する

Last updated at Posted at 2013-05-03

GNU Emacs for MacOS Xをすでにインストールしているなら、Terminal中でもこのバイナリを起動できます。コマンドは下記の通りです。

$ /Applications/Emacs.app/Contents/MacOS/Emacs -nw

長いPATHを毎回打つのは面倒なので、bash_profileなどに下記の記述を加えておくと便利です。

 alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"

MacOS Xにはもともとemacsがインストールされています。上記の設定を加えた場合、そちらのバイナリを起動するためにはFULL PATHを指定する必要があります。

$ 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.
$ /usr/bin/emacs --version
GNU Emacs 22.1.1
Copyright (C) 2007 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.

MacにSSHでアクセスした際にも、いつものEmacsが使えるというメリットがあります。

18
13
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
18
13