Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

STUDY

Useful key bindings 본문

emacs

Useful key bindings

__main__ 2019. 2. 6. 12:27

Useful key bindings


Emacs에서 유용한 packages, key bindigs 모음

Emacs도 안 써봐서 그렇지 clojure나 haskell 연습하면서 써보니 괜찮다. 좋다. 


1. Packages

* multiple-cursors

;; Multiple-cursors
;; init.el 
(require 'multiple-cursors)
(global-set-key (kbd "C-S-d C-S-d") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

  - C-S-d C-S-d  : select all lines

  - C->  : select next word

  - C-c C-<  : select all words

* neotree

;; Neotree 
;; init.el
(require 'neotree)
(global-set-key [f10] 'neotree-toggle)

* powerline

* cider (for clojure dev.)

  - M-x cider-jack-in  : start cider-nrepl

  - C-c C-z  : move focus to repl, move focus to buffer

  - C-c M-n n  : change to current namespace

  - C-c C-k  : compile

  - C-c C-l  : load current file 

* intero (for haskell dev.)

* sly (for common lisp dev.)


2. Key bindings

* C-w  : cut

* M-w  : copy

* C-x C-s  : save this file

* C-x C-f  : create or open a file 

* C-x C-u  : undo

* C-c C-z  : move between buffers

* C-x 3  : split window vertically

* C-x 1  : just single window

* C-x 2  : split window horizontally

* C-c M-n n  : change namespace to current file (cider/nrepl)

* C-c C-k  : compile current file

* C-c C-l  : load current file to repl (cider/nrepl, intero)

* C-x C-e  : eval this line (at the end of the line)  

'emacs' 카테고리의 다른 글

Emacs Configuration File  (0) 2020.11.25
gVim Configuration  (0) 2020.06.04
Changing the location of Emacs' config. file  (0) 2019.01.24
Vim - Select Multiple Cursors  (0) 2019.01.13
Comments