これらの手順に従って、Ubuntu 12 に haskell-mode をインストールしています。ただし、入力する段階になるとM-x customize-option RET pac
、Emacs は「一致しません! カスタマイズ可能なすべての変数を下の図に示します。
何がうまくいかないのですか?
これらの手順に従って、Ubuntu 12 に haskell-mode をインストールしています。ただし、入力する段階になるとM-x customize-option RET pac
、Emacs は「一致しません! カスタマイズ可能なすべての変数を下の図に示します。
何がうまくいかないのですか?
これにはemacs24
、またはそれ以降が必要です。
MELPA
ます:sudo emacs /etc/emacs/site-start.el
このコードを貼り付けます: ( https://melpa.org/#/getting-startedから)
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
保存して終了。
haskell-mode
Haskell のプリティ プリンティングとインデントを取得するには、次のようにして haskell-mode をインストールします。
emacs
M-x package-list-packages RET (Type meta-key and S, then type package-list-packages and hit return)
C-s haskell-mode RET (Type control-S to search, type nginx and hit return to find the haskell-mode package)
i (to mark it to install)
x (to execute installation of marked packages)
haskell-mode
Haskell モードは、haskell ファイルに対して自動的にロードされます。手動でロードしたい場合は、 で haskell-mode に切り替えることができますM-x haskell-mode
。