Author Topic: Eamcs Shortcuts  (Read 1206 times)

Offline marko

  • Administrator
  • Novajlija
  • *****
  • Posts: 175
  • Gender: Male
    • View Profile
    • http://www.marko.anovil.com
Eamcs Shortcuts
« on: 05.11.2007. 05:25 »

http://www.engr.uvic.ca/~dastone/emacs-keys.html

C-d     delete character to right of cursor (current char)
M-d    delete one word to right of cursor
C-w    kill current region (between point and mark)
M-w    copy current region (often yanked next)
C-x u    undo
M-f    move forward one word at a time
M-b    move backward one word at a time
M-<    move to top of buffer
M->    move to bottom of buffer
C-x C-s    save current buffer
C-k    kill from cursor to end of line
C-y    yank-back (paste) last killed thing
M C-q    With the cursor on a left-curly brace automagically indent everything to the matching brace.
M-/    auto-complete the identifier you've started to type


C-x s     visit all buffers, prompt to save if changed
C-x c    compile current buffer. (this is potential trouble, note that C-x C-c quits emacs).
C-x C-c    quit emacs (prompt to save modified buffers)
C-s    search for a string forwards (enter string in mini-buffer)
C-s C-s    repeats the last search (no prompt)
C-r    search backwards in buffer (enter string in mini-buffer)

Offline kliketa

  • Administrator
  • Novajlija
  • *****
  • Posts: 13
  • Gender: Male
  • ја сам само момак
    • View Profile
    • Енциклопедија лутања
Odg: Eamcs Shortcuts
« Reply #1 on: 05.11.2007. 11:50 »
Ovo ti je ludilo: M-/ ;)

Offline marko

  • Administrator
  • Novajlija
  • *****
  • Posts: 175
  • Gender: Male
    • View Profile
    • http://www.marko.anovil.com
Odg: Eamcs Shortcuts
« Reply #2 on: 05.11.2007. 19:32 »
C-u 2 C-k    Delete 2 lines.
M-z char    Kill through the next occurrence of char (zap-to-char).
C-M-f    Forward match brace
C-M-b    Backward match brace
M-p    Move to the next earlier argument string saved in the minibuffer history (previous-history-element). DOWN
M-n    Move to the next later argument string saved in the minibuffer history (next-history-element).
M-r regexp RET    Move to an earlier saved argument in the minibuffer history that has a match for regexp (previous-matching-history-element).
M-s regexp RET    Move to a later saved argument in the minibuffer history that has a match for regexp next-matching-history-element).
Typing M-c    within an incremental search toggles the case sensitivity of that search.
C-x b buffer <RET>    Select or create a buffer named buffer (switch-to-buffer).
C-x 4 b buffer <RET>    Similar, but select buffer in another window (switch-to-buffer-other-window).
C-M-o    Insert new line after this line with proper indentation
M-^    Append this line to line before this line.
C-x 4 b bufname RET    Select buffer bufname in another window. This runs switch-to-buffer-other-window
C-u 10 <down-arrow>    macro to press 10 times the down-arrow
M-;    Insert or align comment (indent-for-comment).
C-x ;    Set comment column (set-comment-column).
C-u - C-x ;    Kill comment on current line (kill-comment).
C-M-j    Like RET followed by inserting and aligning a comment (indent-new-comment-line).

http://www.math.uh.edu/~bgb/emacs_keys.html
« Last Edit: 05.11.2007. 19:37 by marko »

Offline zika

  • Novajlija
  • *
  • Posts: 2
  • Gender: Male
    • View Profile
    • odmoriSe
Odg: Eamcs Shortcuts
« Reply #3 on: 29.05.2008. 03:22 »
definisanje zgodnih precica i ubijanje beskorisnih dugmica:

;beskorisno i ponekad uzasno nervirajuce INSERT dugme umesto M-/
(global-set-key [insert] 'hippie-expand) 

;F5 ne sluzi bas nicemu
(global-set-key [f5] 'find-file)
; osim za otvaranje fajlova :)
;kao i F3 uglavnom
(global-set-key [f3] 'query-replace)

;prza promena bafera
(global-set-key [f7] (lambda ()
                         (interactive)
                         (switch-to-buffer (other-buffer))))
;zamenjuje sekvencu C-x b + ENTER za podrazumevano

Offline marko

  • Administrator
  • Novajlija
  • *****
  • Posts: 175
  • Gender: Male
    • View Profile
    • http://www.marko.anovil.com
Odg: Eamcs Shortcuts
« Reply #4 on: 10.05.2009. 04:47 »
Sasvim slučajno posle toliko godina korišćenja otkrih sledeće prečice :)

M-u  rec iz kursora prebacuje u velika slova (uppercase)
M-l   rec iz kursora prebacuje u mala slova (lowercase)
M-c  u reci iza kursora prvo slovo postaje veliko, a sva ostala mala (capitalize)

Offline marko

  • Administrator
  • Novajlija
  • *****
  • Posts: 175
  • Gender: Male
    • View Profile
    • http://www.marko.anovil.com
Re: Eamcs Shortcuts
« Reply #5 on: 26.05.2009. 22:45 »