User:Timothee Flutre/Notebook/Postdoc/2012/07/25: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(Autocreate 2012/07/25 Entry for User:Timothee_Flutre/Notebook/Postdoc)
 
(→‎About Emacs: add org tutorial)
(20 intermediate revisions by the same user not shown)
Line 6: Line 6:
| colspan="2"|
| colspan="2"|
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### -->
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### -->
==Entry title==
==About Emacs==
* Insert content here...


* '''Motivation''': when analyzing data for any research project, it's essential to know well a good text editor. Indeed, it's very efficient to be able to program in several languages (eg. Python, C/C++, R), interact with the shell like in a terminal, manipulate data and plot exploratory analyzes in R, ''all this within the same editor''! One such editor is [http://en.wikipedia.org/wiki/Emacs Emacs], and is available on Linux, Mac OS and Windows. For Mac OS X users, I recommend [http://vgoulet.act.ulaval.ca/en/emacs/mac/ this distribution].
* '''Documentation''':
** official [https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html manual]
** I haven't found yet any good tutorial, outside of the official [https://www.gnu.org/software/emacs/tour/ tour]
** [http://www.emacswiki.org/ wiki] (with many tips)
** [https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org org tutorial]
** [https://github.com/emacsmirror/p code] (mirrors packages)
** [http://xkcd.com/378/ cartoon]
* '''Important packages''':
** [http://orgmode.org/) org-mode]
** [http://cx4a.org/software/auto-complete/ Auto-Complete]
** [http://ess.r-project.org/ ESS]
** [http://www.gnu.org/software/auctex/ AUCTeX]
* '''Configuration''': my own file <nowiki>~/.emacs</nowiki> (versioned [https://github.com/timflutre/perso/blob/master/emacs here]):
* '''Tips''':
** from the office computer (desktop), log interactively to a cluster node, launch <code>emacs --daemon</code> and keep the terminal open indefinitely; then access this session from any computer, e.g. a laptop, with <code>emacsclient -t</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


<!-- ##### 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 04:47, 3 November 2014

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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html>

About Emacs

  • Motivation: when analyzing data for any research project, it's essential to know well a good text editor. Indeed, it's very efficient to be able to program in several languages (eg. Python, C/C++, R), interact with the shell like in a terminal, manipulate data and plot exploratory analyzes in R, all this within the same editor! One such editor is Emacs, and is available on Linux, Mac OS and Windows. For Mac OS X users, I recommend this distribution.
  • Configuration: my own file ~/.emacs (versioned here):
  • Tips:
    • from the office computer (desktop), log interactively to a cluster node, launch emacs --daemon and keep the terminal open indefinitely; then access this session from any computer, e.g. a laptop, with emacsclient -t
    • especially useful with PuTTY on Windows, launch emacs so that its window is the terminal itself, via emacs -nw
    • 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