Funcs

Created Tuesday 07 January 2014

+
(+) ; 0
(+ 3) ; 3
(+ 3 4 5) ; 12

-

/

*****
(*); 1
(* 3) ; 3
(* 3 4 5) ; 60

concat
(concat "abc" "def")

substring
(substring "The quick brown fox jumped." 16 19)

number-to-string ;; converts int to string (also known as int-to-string)
(number-to-string (+ 2 fill-column))

message ;; Takes a variable number of arguments, prints in the echo area
(message "The name of this buffer is: %s." (buffer-name)) ;; %s - a pointer to string
(message "The value of fill-column is %d." fill-column) ;; %d is for int
(message "There are %d %s in the office!"

(- fill-column 14) "pink elephants")



Backlinks: