Skip to content

nikolavojicic/.emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Key bindings

Basic

C-gabort bindingC-x C-ssave file
C-/undoC-x C-ffind / create file
C-zsuspend emacsC-x ssave some files
C-x C-cexit emacsC-x bswitch buffer
C-nminibuffer nextM-nminibuffer next history
C-pminibuffer previousM-pminibuffer previous history
C-x kkill bufferC-x C- -zoom out
C-x C-blist buffersC-x C- +zoom in
C-u <n> <c>repeat <c> <n> timesC-h ?help menu
F2reformat and saveF6toggle flycheck
C-x r mbookmark at pointC-x r llist all bookmarks
C-x n nnarrow to regionC-x n wundo narrow (widen)

Window

qquit helpC-x 1close all but current
C-x ojump to nextC-x 2split up-down
C-x 0close currentC-x 3split left-right
C-x {resize window leftC-x }resize window right
C-x ^resize window upC-x vresize window down
C-x +equally size windowsC-M-lscroll heuristically
C-M-vscroll other window downC-M-Vscroll other window up
C-x 5 2new frameC-x 5 ojump to next frame

Move

C-fnext charC-bprevious char
M-fnext wordM-bprevious word
C-nnext lineC-pprevious line
C-aline startC-eline end
M-asentence startM-esentence end
C-vnext screenM-vprevious screen
M-<buffer startM->buffer end
C-ssearch forwardC-rsearch backward
C-M-ssearch forward regexC-M-rsearch backward regex
M-g gjump to lineC-lcenter / top / bottom
C-’avy search timer

Cursor

C-c C-’mark nextC-’if multiple mark next
C-c C-;mark previousC-;if multiple mark previous
C-”if multiple unmark nextC-:if multiple unmark previous
C-c C-=mark all in defunC-x C-=mark all
C-`if multiple cycle forwardENTERcomplete

Text

C-spaceset markC-M-hselect form
M-wcopy selectedC-x hselect all
C-ypaste latest cutM-yreplace C-y with previous cut
C-ddelete charC-jnew line + indent
M-dcut wordM-;(un)comment selected
C-kcut text forwardM-/autocomplete
C-S-backspacecut lineM-\clear spaces around point
M-kcut sentenceM-%replace
C-wcut selectedM-llowercase word
M-uuppercase wordC-x C-llowercase region
C-x C-uuppercase regionC-x spacerectangle region
C-x r tstring rectangleC– C-=contract region
C-=expand region(M-0) F4stop / play (until fail) macro
F3start macroC-x C-odelete surrounding blank lines
C-M SPACEselect next wordC-u C-c .insert timestamp
C-x w hhighlight regexC-x w runhighlight regex
C-x w .highlight symbolC-u C-x w runhighlight all
C-oadd line belowM-DELcut word backward
M-tdrag word forwardC-c ssort lines

Dired

ppreviousnnext
+create dirgrefresh
mmarktinverse mark
uunmarkUunmark all
%mmark regex by name%gmark regex by content
%ffind files by name recursive%Ffind files by content recursive
M-}next marked fileM-{previous marked file
dmark for deletexdelete marked for delete
Ddelete markedRrename / move
Ccopy^goto parent dir
fedit filevview file
oopen and gotoC-oopen
C-x C-jjump to diredC-x 4 C-jjump to dired new window
C-x C-qchange file namesC-c C-capply changes
qclose dired bufferC-u qkill dired buffer
TABtoggle subtreeS-TABremove subtree
(show detailskkill lines (narrow)

Paredit

(open and close delimiter)go through closing delimiters
M-([{”wrap with delimitersM-sremove delimiters
C-(move opening delimiter leftC-)move closing delimiter right
C-{move opening delimiter rightC-}move closing delimiter left
M-downremove next and unwrapM-upremove previous and unwrap
M-Ssplit delimitersM-Jjoin delimiters
C-M-fjump to closing delimiterC-M-bjump to opening delimiter
  • delimiters: () [] {} “”

Company

M-nnext choice
M-pprevious choice
M-(digit)nth choice
f1see docs for selected
C-wsee source for selected

Cider

C-c C-keval bufferC-c M-jrun and open
C-c C-eeval form, showC-c M-n M-nswitch repl ns
C-u C-c C-eeval form, writeC-u C-c C-oclear buffer
C-c C-ceval defunC-c M-;eval defun, comment
C-c C-bkill evalC-c C-zgo to repl or back
C-c M-iinspect formC-u C-c C-cdebug form
M-.go to symbol defM-,return back
C-c C-t C-nrun ns testsC-c C-t C-prun project tests
C-c C-d C-ddisplay docC-c C-uundefine symbol
C-c C-jjump to errorF7toggle cider-error

Magit

C-x gstatus
?help
C-nnext line
C-pprevious line
nnext item
pprevious item
M-nnext section
M-pprevious section
TABtoggle expand parent
S-TABhide expanded

Org

Outline {*+}

TABtoggle local visibility
S-TABtoggle global visibility
C-ENTERadd same level heading
M-RIGHT / LEFTlevel inc / dec headline
M-S-RIGHT / LEFTlevel inc / dec section
M-UP / DOWNmove section up / down
M-S-UP / DOWNmove heading up / down
C-c C-wmove under another level
S-UP / DOWNpriority inc / dec
C-c C-pgoto previous heading
C-c C-ngoto next heading

Status {TODO / DONE}

S-RIGHT / LEFTcycling
C-c C-tkeywords menu
#+SEQ_TODOdefine new keyword
TODO(t@/!)specify logging
@ - ts + note on enter
! - ts on exit

Agenda

C-C C-sschedule
C-c C-ddeadline
C-c C-zadd note (to :LOGBOOK:)
C-c [add file to agenda list
C-c ]remove file from agenda list
C-c aagenda view
C-u 5 C-c aagenda view for 5 days
grefresh agenda
Ffollow mode
f / bmove forward / back
tchange task status

Repeat {w(eek) d(ay) m(onth) y(ear)}

+1w1 week
++1w1 week in future
.+1w1 week after task is DONE

Checklist {- [ ]}

C-c C-ccycling
M-S-ENTERnew item
[/]number of done
[%]percent of done

Tag

C-c C-qassign to headline
#+TAGS:define new tags
-TAG_NAMEexclude from agenda+m

Archive

C-c C-x C-ainternal archive subtree
C-c C-x C-smove subtree to archive
#+ARCHIVE:define archive file

Link

C-c C-lcreate / edit link
C-c C-oopen link
C-c &return back from link
websitewebsite
file:~/.emacs.d/README.orgfile
file:~/.emacs.d/README.org::17file at line
file:~/.emacs.d/README.org::*Basicfile at headline
Goto hereradio target <<here>>
Orgsection
id:d34d34fe-1b76-4e1d-a60d-a119bef6f542:PROPERTIES: -> :ID: (F5)
TODOgnus email

Table

TABnext cell
S-TABprevious cell
S-LEFT / RIGHTmove cell left / right
S-DOWN / UPmove cell up / down
M-LEFT / RIGHTmove column left / right
M-DOWN / UPmove row up / down
<length-number>set max column length
C-c TABapply max column length
C-c ^sort table
M-S-DOWN / UPadd / delete row
M-S-RIGHT / LEFTadd / delete column
C-c -add line row
#+TBLFM: @3..@$1=@#-1row number formula
$colnum @rownumreferences in #+TBLFM:
#+CONSTANTS:constants for formulas

Timer

C-c C-x ;timer start countdown
C-c C-x 0timer start relative
C-u C-c C-x 0timer start relative + offset
C-c C-x ,timer toggle pause
C-u C-c C-x ,timer stop
C-c C-x .insert timestamp
C-c C-x -insert timestamp list

Clock

C-c C-x C-iclock in
C-c C-x C-oclock out
C-c C-x C-xclock restart
C-c C-x C-qclock quit
C-c C-x C-dclock display (C-c C-c close)
C-c C-x C-jjump to clocked task
C-c C-x eset effort estimate
C-u C-c C-x C-xrecently clocked tasks
M-RIGHT / LEFTlevel inc / dec effort
#+PROPERTY: Effort_ALLdef effort values
C-c C-x C-copen column view (Q close)
#+COLUMNS:customize column view
#+BEGIN: clocktablecapture clocking report
#+BEGIN: columnviewcapture column view

Various

#+SETUPFILEfile wth settings
C-c C-cactivate #+ line
C-c cprompt capture
:DRAWERNAME:custom drawer
:PROPERTIES:agenda search, :LOGGING:, :ORDERED: :COLUMNS:
C-c C-eexport menu
C-c C-,insert begin…end block
C-c ’open begin_src in new window
C-c M-fjump to next src block
C-c M-bjump to previous src block
emphasisbold italic underlined verbatim code strikethrough

Emacs installation on Windows

  1. Download the latest version (i686 for 32-bit, x86_64 for 64-bit) and extract it to C:\emacs-version
  2. Computer -> Properties -> Advanced system settings -> Environment Variables
    -> System variables -> Path -> Edit -> add C:\emacs-version\bin
  3. Create folder C:\home
  4. Computer -> Properties -> Advanced system settings -> Environment Variables
    -> System variables -> New -> Variable name: HOME Variable value: C:\home
  5. Clone or download this repository to C:\home\.emacs.d
  6. C:\emacs-version\bin\runemacs.exe -> Send to -> Desktop (create shortcut)

External programs needed on Windows for this init.el

Emacs Lisp for Clojure programmers

ClojureEmacs Lisp
&&rest
(#{x} x)seq-contains
(= #{..} #{..})seq-set-equal-p
.indexOfseq-position
.remove =delete
.remove identical?delq
\c?c
=equal
===
->thread-first
> < <= >=> < <= >=
->>thread-last
andand
applyapply
classtype-of
comparesting< string>
concatseq-concatenate
condcond
conscons
countlength
dec1-
defsetq
defndefun
defoncedefvar defcustom
distinctseq-uniq
doprogn
doseqdolist
dotimesdotimes
dropnthcdr
drop-whileseq-drop-while
empty? listnull
empty? stringstring-empty-p
every?seq-every-p
falsenil ()
filterseq-filter
firstcar
fnlambda
formatformat
group-byseq-group-by
identical?eq
ifif
if-someif-let
inc1+
intoappend
letlet*
listlist
list?listp
mapmapcar
mapcatmapcan
map-indexedseq-map-indexed
maxmax
minmin
namesymbol-name
nthnth
oror
partition-allseq-partition
printlnmessage
prnprint
rand-nthseq-random-elt
rangenumber-sequence
reduceseq-reduce
re-matchesstring-match-p
remove =remove
remove identical?remq
remove predicateseq-remove
restcdr
reversereverse
run!mapc
set/differenceseq-difference
set/intersectionseq-intersection
set/unionseq-union
setqdef
someseq-find
sort-bysort
strconcat
str/blank?string-blank-p
str/joinmapconcat
subvecseq-subseq
takeseq-take
take-whileseq-take-while
truet
whenwhen
when-notunless
when-somewhen-let
whilewhile
zero?zerop

Releases

No releases published

Packages

No packages published