`(blog ,garaemon)

ポップカルチャーを摂取して、コードを吐き出す機械

2019-10-01から1ヶ月間の記事一覧

選択しているbufferに応じてneotreeのディレクトリを移動させる

emacsでbufferを選択するたびにneotreeのディレクトリがそれに応じて変わると便利なのではないかと思い, 設定してみた. bufferの選択に応じて呼び出されるhookは存在しないらしいので, switch-buffer-functionsを利用する (use-package switch-buffer-functi…

macでimagemagickとcocoaが有効になったemacsを使う

結論から言うと, emacs-plusを使うと良い macでemacsをcocoa上で動かしたい時, homebrewではbrew cask install emacsのようにインストールする. しかしこれだとimagemagickが有効になっていない. imagemagickが有効化は以下のコマンドで調べられる. (image-t…

emojifyを使ってemacsで絵文字を表示する😺

emacsで絵文字を表示するにはemacs-emojifyを入れると良い. use-packageを使って, こんな感じで設定 (use-package emojify :ensure t :if (display-graphic-p) :hook (after-init . global-emojify-mode) :bind ("C-x e" . 'emojify-insert-emoji) ) 絵文字…

emacsからcatkin buildを走らせる

emacs編集中に, ターミナルに移動することなくcatkin buildを走らせられると便利. (defun ros-catkin-make (dir) "Run catkin_make command in DIR." (interactive (list default-directory)) ;; clear compilation buffer first not to occupy memory space…