4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Spacemacsにカスタムlayerを追加する

Last updated at Posted at 2018-12-10

SpacemacsにカスタムLayerを追加するサンプルを作りました

インポート方法

カスタムレイヤーを格納する場所(~/.emacs.d/private/)に移動します。

cd ~/.emacs.d/private/

サンプルレイヤーをcloneします。

https://github.com/kentakozuka/my-layer.git

~/.spacemacsdotspacemacs-configuration-layersmy-layerを追加します。

...
   ;; List of configuration layers to load.
   dotspacemacs-configuration-layers
   '(
     ;; ----------------------------------------------------------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press `SPC f e R' (Vim style) or
     ;; `M-m f e R' (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     ...
     my-layer
   )
...

.spacemacsをリロードしてインポートは終了です。

使ってみる

あとは、拡張子が.mmのファイルを作成し(e.g. sample.mm)、spacemacsで開くとモードラインにMMが表示されます。

SPC m h wをタイプするとHello, world!がバッファーに挿入されます。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?