Sha256: 594d4fae4d27faeeaf91d4c91ba2add1d65d3df0e11c9a7530c3dfbbef9ce943

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

module VER
  major_mode :Fundamental do
    use :fundamental
  end

  minor_mode :fundamental do
    handler Methods::Basic
    map :quit, %w[Control-x Control-c]

    handler Methods::Save
    map :save,     %w[Control-x Control-s]
    map :save_all, %w[Control-x s]

    handler Methods::Open
    map :file_open_popup, %w[Control-x Control-f]

    handler Methods::Help
    map :describe_key, %w[Control-h k]

    handler Methods::Undo
    map :undo, %w[Control-slash], %w[Control-x u], %w[Control-underscore], %w[Undo]
    map :redo, %w[Redo] # emacs redo breaks my brain... undo only for now

    handler :at_insert
    map :end_of_file,     %w[Control-greater]
    map :end_of_line,     %w[Control-e], %w[End]
    map :next_char,       %w[Control-f], %w[Right]
    map :next_line,       %w[Control-n], %w[Down]
    map :next_page,       %w[Control-v], %w[Next]
    map :next_word,       %w[Alt-f]
    map :prev_char,       %w[Control-b], %w[Left]
    map :prev_line,       %w[Control-p], %w[Up]
    map :prev_page,       %w[Alt-v],     %w[Prior]
    map :prev_word,       %w[Alt-b]
    map :start_of_file,   %w[Control-less]
    map :start_of_line,   %w[Control-a], %w[Home]
    map :end_of_sentence, %w[Alt-e]

    handler Methods::Delete
    map [:delete_motion, :prev_char],     %w[BackSpace]
    map [:delete_motion, :next_char],     %w[Control-d], %w[Delete]
    map [:kill_motion, :end_of_line],     %w[Control-k]
    map [:kill_motion, :end_of_sentence], %w[Alt-k]
    map [:kill_motion, :next_word],       %w[Alt-d]
    map [:kill_motion, :prev_word],       %w[Alt-BackSpace]

    handler VER::Methods::Insert
    map :newline, %w[Return]
    missing :string
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 config/keymap/emacs.rb