Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:ide [2015/04/27 18:39] – [Summary] gkazhoyadoc:ide [2015/09/04 14:47] (current) gkazhoya
Line 48: Line 48:
 To utilize the features of rosemacs when programming and building Common Lisp software there is also a slime-ros extension for Emacs which tells the CL build system where to find Lisp code of ROS packages. To utilize the features of rosemacs when programming and building Common Lisp software there is also a slime-ros extension for Emacs which tells the CL build system where to find Lisp code of ROS packages.
  
-For more info on how the different components are connected together check out the [[doc/ide-connections|Connecting Things Together]] doc. TODO: finish the doc with the explanations of slime contribs and stuff.+For more info on how the different components are connected together check out the [[doc/ide-connections|Connecting Things Together]] doc.
  
 ===== Setup ===== ===== Setup =====
Line 54: Line 54:
 To setup the development environment one needs to (1) install the necessary components and (2) configure them. To setup the development environment one needs to (1) install the necessary components and (2) configure them.
  
-If you followed the [[../installation|Installation]] instructions successfully (basic section is enough) you should already have all the IDE components automatically installed. The default configuration is also already set up for you, so running ''roslisp_repl'' in the shell will bring up a working IDE and you can start programming.+If you followed the [[../installation|Installation]] instructions successfully (basic section is already enough) you should already have all the IDE components automatically installed. The default configuration is also already set up for you, so running ''roslisp_repl'' in the shell will bring up a working IDE and you can start programming.
  
 If you are interested to know what the default configuration does and what happens under the hood, check out the [[doc/emacs-config|Emacs Configuration]] doc.  If you are interested to know what the default configuration does and what happens under the hood, check out the [[doc/emacs-config|Emacs Configuration]] doc. 
Line 60: Line 60:
 ===== Useful Tips ===== ===== Useful Tips =====
  
-==== Key bindings ====+==== Definitions ====
  
-An Emacs buffer is the equivalent of window / tab in other editors. It can have a file associated with it that you can (or cannot depending on the privileges) edit or a background process (e.g. when you open the shell: ''M-x shell''). The minibuffer is usually a one-line part of the screen at the bottom of the Emacs window. The cursor in Emacs is called the point. Dired is the directory explorer mode of Emacs.+An Emacs //buffer// is the equivalent of window / tab in other editors. It can have a file associated with it that you can (or cannot depending on the privileges) editor it can be running a process (e.g. when you open the shell: ''M-x shell''). The //minibuffer// is usually a one-line part of the screen at the bottom of the Emacs window. The cursor in Emacs is called the //point////Dired// is the directory explorer mode of Emacs.
  
 Textual representation of Emacs key bindings has a number of conventions: Textual representation of Emacs key bindings has a number of conventions:
Line 71: Line 71:
   * ''C-h b'' means first press ''Ctrl'' and ''h'' together and then ''b'' separately (in contrast to ''C-h C-b'')   * ''C-h b'' means first press ''Ctrl'' and ''h'' together and then ''b'' separately (in contrast to ''C-h C-b'')
   * Commands like ''M-x shell'' mean: press ''Alt'' and ''x'' together and then type ''shell'' into the minibuffer on the bottom of the screen.   * Commands like ''M-x shell'' mean: press ''Alt'' and ''x'' together and then type ''shell'' into the minibuffer on the bottom of the screen.
 +==== Key bindings ====
  
 Taken from the Slime manual: Taken from the Slime manual:
Line 89: Line 90:
   * C-M-f (C-M-b): go forward (backward) one expression (in Lisp an S-expression)   * C-M-f (C-M-b): go forward (backward) one expression (in Lisp an S-expression)
   * C-M-\: indent region   * C-M-\: indent region
-  * M-; : comment out region (chooses correct commenting characters depending on file extension)+  * M-; : comment out region (chooses correct commenting characters depending on the extension of the file you're editing)
   * M-< (M- >): go to buffer beginning (or end)   * M-< (M- >): go to buffer beginning (or end)
   * M-%: find-replace   * M-%: find-replace
Line 112: Line 113:
   * M-x slime-browse-system: open the system directory in Dired   * M-x slime-browse-system: open the system directory in Dired
   * C-c C-t: trace function at point   * C-c C-t: trace function at point
 +  * C-M-<Backspace>: clear current input (in case you changed your mind on executing it), make sure you don't have system bindings for this key combination.
  
 In REPL: In REPL: