0
0

emacs 基本操作

Last updated at Posted at 2023-12-22

■ 使用しているemacsの種類
EMP(Emacs Mac Port)版
brew tap railwaycat/emacsmacport
brew uninstall emacs-mac
brew install --cask emacs-mac-spacemacs-icon

■ キー (Macのキーボード)
C:Control[^]キー
M:Command[⌘]キー

■ 基本操作
コマンドの取り消し:C + g
Undo:C + _ (「ろ」のキー)
Undoの逆:C + M + _

■ キーバインド設定
バックスペース:以下を.emacsに追加
; バックスペースのキーバインド(ミニバッファでも有効)
(define-key key-translation-map (kbd "C-h") (kbd "<DEL>"))

ヘルプ:以下を.emacsに追加
; ヘルプのキーバインド
(global-set-key (kbd "C-/") 'help-for-help)

■ 単語移動
M + f
M + b

■ 行頭/行末
C + a
C + e

■ ファイルの先頭/終端
M + Shift + <
M + Shift + >

■ 検索
C + s ⇒ 検索ワード入力
C + s : 次へ
C + h : 前へ

0
0
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
0
0