setq
set quoted value
(setq SYMBOL VALUE)
(setq global-mark-ring-max 50000)
load
executes a file of lisp code.
first tries to find FILE.elc
then FILE.el
then FILE
(load FILE NOERROR=Nil NOMESSAGE=Nil NOSUFFIX=Nil MUST-SUFFIX=Nil)
(load "$HOME/.emacs.d/module")
require
(require FEATURE FILENAME=Nil NOERROR=Nil)
(require 'volatile-highlights)
add-to-list
(add-to-list VARIABLE VALUE)
(add-to-list 'load-path "~/.emacs.d/personal")
add-hook
prepends a function to the hooked event
(add-hook HOOK FUNCTION APPEND=Nil LOCAL=Nil)
(add-hook 'prog-mode-hook 'linum-mode)
global-set-key
(global-set-key KEY COMMAND)
(global-set-key (kbd "C-x C-b") 'ibuffer)
define-key
(define-key KEYMAP KEY DEF)
(define-key dired-mode-map (kbd "e") 'wdired-change-to-wdired-mode)
defalias
define alias
(defalias SYMBOL DEFINITION DOCSTRING=Nil)
(defalias 'eb 'eval-buffer)
mapc
call function on every element in sequence
(mapc FUNCTION SEQUENCE)
(mapc 'load (directory-files "~/.emacs.d/custom" t ".*\.el"))
defun
define function
(defun NAME ARGLIST DOCSTRING=Nil DECL=Nil BODY)
(defun demo ()
(message "Hello World" number string))