Table of Contents

LEARN

MEEGO/HARMATTAN / MAEMO

Hi, I rebuit emacs24 for Harmattan N950 , and it works only in terminal …

1/ http://rzr.online.fr/q/harmattan

2/ apt-cache search emacs && apt-get install emacs*

3/ emacs –no-w

4/ emacs # will show GtK window and crash … help to debug it :-)

5/ FeedBack WelCome :

6/ Fix this :

MisC

ToDo

 (global-set-key "C-Z" nil) # GnomE 3 bug

Usage

emacs replace space with newline:

M-x replace-string RET ; RET C-q C-j. C-q for quoted-insert, C-j is a newline.

TipS :

(serial-term "/dev/ttyUSB0" 115200)

@TaG: TipS

GIT

MODES

MelpA :

ORG MODE

| title  (press C-C to recal on # + TBLFM  line) | unit |  ten |
|------------------------------------------------+------+------|
| line b : org-mode emacs example                |    2 |   40 |
| line a press tab to indent / align             |    1 |   10 |
|------------------------------------------------+------+------|
| #                                              |    3 |   50 |
| ^                                              | sumk | sump |
#+TBLFM: $sumk=vsum(@I..@II)::$sump=vsum(@I..@II) 

ELISP

http://www.gnu.org/software/emacs/manual/html_node/emacs/Cursor-Display.html

(setq visible-cursor 1)

how comes emacs cursor is gone ?

http://www.gnuvola.org/software/personal-elisp/dist/lisp/low-stress/invisible-cursor-mode.el

cursor-type

set-frame-parameter

IDE

/usr/share/doc/global/examples/gtags.conf # CPlusPlus uses .h

:langmap=c\:.c.h,yacc\:.y,asm\:.s.S,java\:.java,cpp\:.c++.cc.cpp.cxx.hxx.hpp.C.H,php\:.php.php3.phtml:
gtags --gtagsconf /usr/share/doc/global/examples/gtags.conf

Debian

sudo apt-get install calc dpkg-dev-el ecb emacs-goodies-el muse-el  oneliner-el remember-el  remembrance-agent  semantic                             

Integration

shortcuts

[[French]] / Les registres

texte
C-x x i # lastest i is reg name
C-x r i i # lastest i is reg name
      C-x x reg               copy-to-register-compatibility-binding
      C-x r s reg             copy-to-register
      C-x r i reg             insert-register
rectangle
  *position
      M-x view-register RET reg
      C-x r SPC reg             point-to-register
      C-x r j   reg             jump-to-register

C-x r w reg window-configuration-to-register

      C-x r f reg               frame-configuration-to-register
      C-x r j reg               pour retrouver les fenetres
  *nom de fichier

Les marque-pages

C-x r m RET                  Pour mettre un marque-page
C-x r m marque-page RET      Pour mettre et nommer un marque-page
C-x r b bookmark RET         Saute au marque-page bookmark
C-x r l                      Liste tous les marques pages
M-x bookmark-save

Bric a brac

C-x s : pour sauver tous les buffers
C-x h : selectionne tout le buffer
M-h : selectionne tout le paragraphe
C-c o : si on est dans un .h, ouvre un .c l'incluant
M-x untabify : pour transformer les tabulations en espaces
C-x C-q : vc-toggle-read-only  passage lecture seule/normal et contraire
C-x C-x : echange le point et la marque
M-x toggle-truncate-lines  : pour juste un buffer
C-h h : hello dans toutes les langues

expressions regulieres

^           debut de ligne
$           fin de ligne
.           n'importe quoi
SPC         n'importe quel nombre d'espaces, tab ou newline
C-q SPC     un seul espace
[[...]]       ensemble de caracteres
[[^...]]      tous sauf ces caracteres
\(...\)     sauver des caracteres
\1          premiere reference

repetitions

+ au moins un

?           une fois ou pas du tout
*?	    idem mais en cherchant les chaines les plus courtes possible
+?          par defaut, on chercher les plus longues possible
??          qui ne contienne pas de retour chariot (pas sur a verifier)
\{min\}
\{min,max\}

[[ToDo]]

add translation :

kill ring rotate : http://www-verimag.imag.fr/~moy/emacs/

* bookmark http://orgmode.org/worg/org-contrib/org-annotation-helper.php

ecb

ERROR: Got error response from SOCKS server: 5 (connection refused).

Tramp: Opening connection for G using scp…

Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh G   -e none && exit || exit'
Tramp: Waiting for prompts from remote shell

modes

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525613

(load-file ”/usr/share/emacs/site-lisp/ede-dired.el”)

apt-file search ede-dired.el

aptitude install ede
(load-file "/usr/share/emacs/site-lisp/ede/ede-dired.el")

USE MODES

// -*- mode: MODENAME; VAR: VALUE; ... -*-
// Emacs style mode select -*- C++ -*- 
// #                                                          -*- Mode: Python -*-
// # -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*-

tramp

ssh “Last login:” suppress :

sudo diff -u /etc/sshd_config.orig  /etc/sshd_config
--- /etc/sshd_config.orig       2012-05-24 10:22:20.000000000 +0200
+++ /etc/sshd_config    2012-05-24 10:22:41.000000000 +0200
@@ -127,3 +127,7 @@
 #      X11Forwarding no
 #      AllowTcpForwarding no
 #      ForceCommand cvs server
+
+PrintLastLog no

Q:

Waiting for prompts from remote shell... \
emacs -q "/ssh:$USER@localhost:/"

A:

mv ~/.bashrc ~/.bashrc.mine

PorT:

CODER

http://www.happycoders.org/software/emacs.php

echo "deb http://debian.speedblue.org ./" | sudo tee /etc/apt/sources.list.d/speedblue.list
sudo apt-get install happycoders-emacs

MAIL

competitor

EMACS 24

(M-x list-packages)

KNOWLEDGE

modes

MISC

MORE

@TaG: Edit Programming SSH IDE Editor DeskTop KdE LxdE X11