Emacsでファイル名から拡張子を除いたものを返す関数
1. file-name-sans-extension を 使う
(file-name-sans-extension "/path/to/index.html") ; => /path/to/index2. f.el の f-no-ext を使う
f.el はファイル関連の処理をいい感じで扱いやすくしてくれるライブラリ.
(require 'f)
(f-no-ext "path/to/index.html") ; => /path/to/index