User:Timothee Flutre/Notebook/Postdoc/2012/07/25: Difference between revisions
From OpenWetWare
(→About Emacs: add closing daemon) |
(→About Emacs: add tuto ENS) |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
* '''Documentation''': | * '''Documentation''': | ||
** official [https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html manual] ([https://www.gnu.org/software/emacs/manual/html_node/eintr/index.html intro] to Emacs Lisp) | ** official [https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html manual] ([https://www.gnu.org/software/emacs/manual/html_node/eintr/index.html intro] to Emacs Lisp) | ||
** | ** official [https://www.gnu.org/software/emacs/tour/ tour], [http://www.tuteurs.ens.fr/unix/editeurs/emacs.html tutorial] (in French) | ||
** [http://www.emacswiki.org/ wiki] (with many tips) | ** [http://www.emacswiki.org/ wiki] (with many tips) | ||
** [https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org org tutorial] | ** [https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org org tutorial] | ||
Line 30: | Line 30: | ||
** especially useful with [http://en.wikipedia.org/wiki/PuTTY PuTTY] on Windows, launch emacs so that its window is the terminal itself, via <code>emacs -nw</code> | ** especially useful with [http://en.wikipedia.org/wiki/PuTTY PuTTY] on Windows, launch emacs so that its window is the terminal itself, via <code>emacs -nw</code> | ||
** when updating org-mode, one may have to first comment all org-related lines in ~/.emacs, remove the dir ~/.emacs.d/elpa/org-*, re-open Emacs with option -Q, install the latest version of org-mode, close Emacs and re-open it without -Q, uncomment all org-related lines in ~/.emacs | ** when updating org-mode, one may have to first comment all org-related lines in ~/.emacs, remove the dir ~/.emacs.d/elpa/org-*, re-open Emacs with option -Q, install the latest version of org-mode, close Emacs and re-open it without -Q, uncomment all org-related lines in ~/.emacs | ||
* '''Emacs Lisp''': [http://www.gnu.org/software/emacs/manual/html_node/eintr/ intro] | |||
** go to the *scratch* buffer | |||
** write <code>(+ 2 2)</code> | |||
** put the cursor after the last parenthesis, and enter <code>C-x C-e</code> | |||
** one should see <code>4</code> in the mini-buffer | |||
** do the same with <code>(concat "abc" "def")</code> | |||
** here is an example of a [https://www.gnu.org/software/emacs/manual/html_node/eintr/Writing-Defuns.html#Writing-Defuns function] (interactive in this case) | |||
(defun f (x y) | |||
"add" | |||
(interactive "nx=\nny=") | |||
(message "%i" (+ x y)) | |||
) | |||
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> | <!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> |
Revision as of 07:33, 24 October 2015
Project name | <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page <html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html> </html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html> |
About Emacs
(defun f (x y) "add" (interactive "nx=\nny=") (message "%i" (+ x y)) )
|