Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Emacs では、どうすれば Mx でエイリアスを呼び出すことができますか? たとえば、「alias ff find-file $1」のようにファイルを開くエイリアスがあります。私はそれを Mx ff RETURN $1 として呼び出すのが好きです。同様に、ディレクトリを表示するためのエイリアスを定義しました。引数を指定せずに Mx でそれを呼び出すのが好きです。
そのためには、エイリアスをEshellに固有のものではなく、グローバルなEmacsエイリアスとして定義する必要があります。
(defalias 'ff 'find-file)