! ! Swap Caps_Lock and Control_L ! remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L
C-x i
:insert-file
C-x h
:mark-whole-buffer
M-h
:org-mark-element
(or the paragraph outside org-mode)- #+include: xmodmaprc
C-x C-b
: list-buffers (s d x m S)C-h m
: to check major and minor modes documentationC-x s
:save-some-buffers
C-x }
:enlarge-window-horizontally
C-x {
:shrink-window-horizontally
M-x proced RET
(derived from tabulated-list-mode)C-c ^
: to go up one levellist-packages
C-h i d m
: navigating infoM-x beacon-mode RET
(install beacon from GNU ELPA)M-x bm RET
(useless, use C-x C-@ instead?)M-x visible-mode RET
C-x d
andC-u C-x d
- within dired: + to create a répertoire
- within dired: g
- within dired: % m
- within dired: C-x C-q to edit files and dir names
M-x eshell RET
M-%
:query-replace
C-M-%
:query-replace-regexp
- knowing keybindings possibilities:
C-x C-k C-h
(Global Bindings Starting With C-x C-k)C-x C-h
C-x 8 C-h
delete-trailing-whitespace
delete-duplicate-lines
regexp-opt
: optimize regular expressionsregexp-quote
: return a regex match the entered stringM-:
:eval-expression
org-imenu-get-tree
C-x o
:other-window
C-x 1
:delete-other-windows
C-x 2
:split-window-horizontally
C-x 3
:split-window-vertically
C-x 0
:delete-window
C-x +
:balance-windows
- see
Buffer-menu-mode
docstring - conventions for displaying keybindings
- \<Buffer-menu-mode-map>
- \[buffer-menu-command]
- bind a command locally
(define-key Buffer-menu-mode-map (kbd "M-o") 'Buffer-menu-view-other-window)
global-unset-key
local-unset-key
Other functions for list-buffers:
- auto open of .gz files
!
in dired to perform the relevant actiondired-guess-shell-alist-user
C-x r s
:copy-to-register
C-x r i
:insert-register
C-x r SPC
:point-to-register
C-x r j
:jump-to-register
C-x r w
:window-configuration-to-register
M-x register-list RET
(external package)M-x list-registers RET
C-x r m
:bookmark-set
C-x r M
:bookmark-set-no-overwrite
C-x r b
:bookmark-jump
C-x r l
:bookmark-bmenu-list
Global org-mode keys:
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(define-key global-map "\C-cc" 'org-capture)
C-c C-l
:org-insert-link
C-c C-o
:org-open-at-point
C-x (
: start defining a macroC-x )
: stop defining a macroC-x e
: call the last defined macroC-x C-k b
: bind the macro to a keyC-x C-k C-i
: to create a counter and insert its valueC-x C-k RET
: edit last macro in a bufferC-x C-k C-n
: cycle through macrosC-x C-k n
: name the last macroC-x e e e e e
: repeat last macro- C-h f kmacro-
Example : C-x ( aaa C-x C-k C-i C-x )
Using macros to rename (with C-x C-q) in dired.
- installation
- speed commands
- (setq org-use-speed-commands t)
- scheduled and deadline
- schedule
C-c C-s
- deadline
C-c C-d
- schedule
org-agenda-files
C-c [
to add the current file to agenda filesS-<left/right>
S-<up/down>
in timestamps- in the agenda
S-<left/right>
to change the date - in the agenda use `t’ to mark a headline done
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-skip-scheduled-if-done t)
- checking the todo list
- buffer restrictions (file & narrow-to-subtree)
- agenda narrowing (by tag, by regexp, / / = |)
- tag match
- todo/properties/scheduled match
- . in the agenda to go back to today
v d
/v w
/v m
to change the agenda spanC-c C-q
: setting tagsC-c C-x p
: setting propertiesC-c C-x c
: column viewC-c a
: agenda view + custom keybinding- agenda files
- custom agenda view
C-c c
:org-capture
C-c C-w
:org-refile
C-c C-j
:org-goto
- demote with
S-M-<left/right>
to preserve the structure C-c C-x C-r
: insert the clock tableC-c C-x e
: insert the “Effort” property#+COLUMNS: %40ITEM(Task) %10Effort(Effort){:} %CLOCKSUM
- Effort_all
;; Careful about using match-string with TWO args after string-match
(if (string-match "\\<abc\\>" " abc ")
(match-string 0 " abc "))
- eq = same object
- equal = same content (have equal component)
(Quick definition: see the manual.)
- https://www.emacswiki.org/emacs/SampleMode
- https://www.emacswiki.org/emacs/ModeTutorial
require
,provide
, (featurep ‘sns)defvar
font-lock-add-keywords
(font-lock-defaults)comment-start
andcomment-start-skip
paragraph-start
andparagraph-separate
syntax-table
- local map (and keybindings)
indent-line-function
easy-menu-define
- hooks
outline-regexp
defcustom
- autoloads
- buffer navigation functions
- manipulating overlays
- text properties