This shows you the differences between two versions of the page.
emacs [2018/08/03 12:48] |
emacs [2023/07/30 23:28] (current) rzr [MODES] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | ===== LEARN ===== | ||
+ | |||
+ | * https://github.com/nobiot/Zero-to-Emacs-and-Org-roam# | ||
+ | * https://karthinks.com/software/batteries-included-with-emacs/# | ||
+ | |||
+ | |||
+ | ===== 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 : | ||
+ | |||
+ | * http://talk.maemo.org/showthread.php?p=1304789#post1304789 | ||
+ | |||
+ | 6/ Fix this : | ||
+ | |||
+ | * https://gitorious.org/downstream/emacs | ||
+ | |||
+ | |||
+ | MisC | ||
+ | |||
+ | * http://talk.maemo.org/showthread.php?p=1301709#post1301709# HarmattanDev | ||
+ | * http://talk.maemo.org/showthread.php?p=1301739#post1301739 | ||
+ | * http://packages.qa.debian.org/e/emacs24.html | ||
+ | * http://git.savannah.gnu.org/cgit/emacs.git/tree/ | ||
+ | * http://savannah.gnu.org/git/?group=emacs | ||
+ | * http://repository.maemo.org/extras-devel/pool/fremantle/free/source/e/emacs24/emacs24_24.2-1.dsc | ||
+ | * http://ftp.gnu.org/gnu/emacs/emacs-24.2.tar.bz2 | ||
+ | |||
+ | |||
+ | ===== ToDo ===== | ||
+ | |||
+ | * https://github.com/dimitri/emacs-kicker | ||
+ | * http://batsov.com/articles/2011/11/30/the-ultimate-collection-of-emacs-resources/ | ||
+ | * http://cedet.sourceforge.net/#ToTest | ||
+ | * http://tromey.com/blog/?p=342 ValGrind | ||
+ | * http://bugs.debian.org/412919 | ||
+ | * Bug: emacs "M-s-x is undefined" http://usenet.jyxo.cz/cz.comp.linux/0207/alt-v-emacs.html : [[xmodmap]] ? | ||
+ | * http://www.happycoders.org/software/emacs.php | ||
+ | * [[gdb]] : http://tedlab.mit.edu/~dr/gdbintro.html | ||
+ | * https://code.launchpad.net/~arankine/+junk/ede-cmake# [[cmake]] | ||
+ | * http://gnuvince.wordpress.com/2012/02/19/why-i-still-use-emacs/# ReaD | ||
+ | * http://orgmode.org/worg/org-tutorials/orgtutorial_dto-fr.html# OrG | ||
+ | * http://www.kirubakaran.com/articles/efficiently-browsing-text-or-code.html# GreP | ||
+ | * http://ulf.zeitform.de/en/documents/git-ediff.html# GiT | ||
+ | * https://cestlaz.github.io/stories/emacs/# LearN | ||
+ | |||
+ | (global-set-key "C-Z" nil) # GnomE 3 bug | ||
+ | |||
+ | * https://github.com/dimitri/emacs-kicker | ||
+ | * https://www.emacswiki.org/emacs/DirectoryVariables | ||
+ | |||
+ | |||
+ | ==== TipS : ===== | ||
+ | |||
+ | * http://stackoverflow.com/questions/5194294/how-to-remove-all-newlines-from-selected-region-in-emacs | ||
+ | * http://yesybl.org/blogen/?p=25# uniq-lines | ||
+ | * http://whattheemacsd.com/ | ||
+ | |||
+ | |||
+ | (serial-term "/dev/ttyUSB0" 115200) | ||
+ | |||
+ | @TaG: TipS | ||
+ | |||
+ | ===== GIT ===== | ||
+ | |||
+ | * http://philjackson.github.com/magit/magit.html# [[git]] | ||
+ | * http://www.emacswiki.org/emacs/Magit | ||
+ | * https://github.com/magit/magit/tags | ||
+ | * http://shakthimaan.com/downloads/glv/presentations/magit.pdf GiT | ||
+ | |||
+ | |||
+ | ===== MODES ===== | ||
+ | |||
+ | * what about emacs wiki ? http://repose.cx/emacs/wiki/ | ||
+ | * http://emacs-w3m.namazu.org/ | ||
+ | * http://ecb.sourceforge.net | ||
+ | * http://cedet.sourceforge.net/intellisense.shtml | ||
+ | * tramp [[SSH]] : emacs /user@$host:~/path/ | ||
+ | * [[FTP]] : /ftp:${USER}@${HOST}:~/ | ||
+ | * https://github.com/canatella/bitbake-el# YoctO | ||
+ | * https://melpa.org/#/bitbake | ||
+ | * https://github.com/joaotavora/eglot#animated_gifs | ||
+ | * https://news.ycombinator.com/item?id=36935668 | ||
+ | |||
+ | |||
+ | MelpA : | ||
+ | |||
+ | * http://melpa.org/#/getting-started | ||
+ | * https://github.com/yjwen/org-reveal# OrG | ||
+ | * https://github.com/portacle/portacle/issues/141# "gnutls.c: [0] (Emacs) Received alert: Error in protocol version " | ||
+ | |||
+ | ===== ORG MODE ===== | ||
+ | |||
+ | * http://nickguthrie.com/embedd_gui/doc/notes.org | ||
+ | * http://orgmode.org/worg/org-tutorials/org-tableur-tutoriel.html | ||
+ | * http://metajack.im/2009/01/01/journaling-with-emacs-orgmode/ | ||
+ | * http://www.irill.org/all-videos/GNU_Hackers_Meeting%20/org-mode-is-to-emacs-what-emacs-is-to-computers | ||
+ | * ShortCut : C-u C-u C-u TAB | ||
+ | |||
+ | <code> | ||
+ | |||
+ | | 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) | ||
+ | |||
+ | </code> | ||
+ | |||
+ | * http://sachachua.com/blog/2013/04/how-to-present-using-org-mode-in-emacs/ | ||
+ | * https://www.youtube.com/watch?v=lsYdK0C2RvQ# PrevieW | ||
+ | * http://stackoverflow.com/questions/23941114/emacs-org-mode-how-to-select-a-page-style-when-exporting-to-odt | ||
+ | * http://www.orgzly.com/# AndroiD | ||
+ | * https://github.com/bjonnh/PyOrgMode | ||
+ | * https://github.com/mooz/org-js/ | ||
+ | * https://bitbucket.org/zck/zpresent.el# PresenT | ||
+ | * https://orgmode.org/worg/org-contrib/babel/intro.html# LearN | ||
+ | * https://www.orgroam.com/# | ||
+ | * https://github.com/bastibe/org-journal# | ||
+ | |||
+ | ===== 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 ==== | ||
+ | |||
+ | * ecb : http://sourceforge.net/tracker/index.php?func=detail&aid=1830977&group_id=17484&atid=217484 | ||
+ | |||
+ | /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 ==== | ||
+ | |||
+ | * does [[MSVC]] mode for emacs worth it ? | ||
+ | * http://www.cam.hi-ho.ne.jp/oishi/indexen.html : [[Windows]] | ||
+ | * kdevelop : http://osdir.com/ml/kde.users.kdevelop/2003-12/msg00028.html | ||
+ | |||
+ | |||
+ | ==== shortcuts ==== | ||
+ | |||
+ | * C-h b : describe-bindings | ||
+ | * [[Cursor]] : C-f C-b C-n C-p : move cursor | ||
+ | * [[Search]] : C-s , C-r | ||
+ | * http://xahlee.org/emacs/emacs_kb_shortcuts_pain.html | ||
+ | * http://lpn.rnbhq.org/tools/xemacs/emacs_ref.html | ||
+ | |||
+ | |||
+ | ==== [[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 | ||
+ | |||
+ | *configuration fenetres | ||
+ | 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=== | ||
+ | |||
+ | * zero ou plus | ||
+ | + 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 : | ||
+ | * http://oconnor.cx/elisp/google.el | ||
+ | * http://www.vegetable.demon.co.uk/wence/google.el | ||
+ | * Emacsrden's babelfish : http://www.chez.com/emarsden | ||
+ | |||
+ | kill ring rotate : http://www-verimag.imag.fr/~moy/emacs/ | ||
+ | |||
+ | * [[bookmark]] http://orgmode.org/worg/org-contrib/org-annotation-helper.php | ||
+ | |||
+ | |||
+ | ==== ecb ==== | ||
+ | |||
+ | *tramp/scp G* | ||
+ | ERROR: Got error response from SOCKS server: 5 (connection refused). | ||
+ | |||
+ | *Messages* | ||
+ | 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") | ||
+ | |||
+ | |||
+ | * https://github.com/tj64/outshine# OrG | ||
+ | |||
+ | |||
+ | ===== USE MODES ===== | ||
+ | |||
+ | // -*- mode: MODENAME; VAR: VALUE; ... -*- | ||
+ | // Emacs style mode select -*- C++ -*- | ||
+ | // # -*- Mode: Python -*- | ||
+ | // # -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*- | ||
+ | |||
+ | |||
+ | * http://emacs.stackexchange.com/questions/22428/change-python-indent-in-a-specific-file# | ||
+ | ==== tramp ==== | ||
+ | |||
+ | ssh "Last login:" suppress : | ||
+ | |||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | |||
+ | Q: | ||
+ | |||
+ | Waiting for prompts from remote shell... \ | ||
+ | emacs -q "/ssh:$USER@localhost:/" | ||
+ | |||
+ | * https://emacs.stackexchange.com/questions/50200/tramp-hangs-in-waiting-for-prompts-from-remote-shell | ||
+ | |||
+ | A: | ||
+ | mv ~/.bashrc ~/.bashrc.mine | ||
+ | |||
+ | |||
+ | PorT: | ||
+ | |||
+ | * https://www.emacswiki.org/emacs/TrampMode#h5o-25 | ||
+ | ==== 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 ==== | ||
+ | |||
+ | * http://blog.binchen.org/posts/notes-on-using-gnus.html | ||
+ | |||
+ | |||
+ | ==== competitor ==== | ||
+ | |||
+ | * [[eclipse]] : http://www.coderanch.com/t/101996/IDEs-Version-Control-other-tools/Split-screen-editor-Eclipse | ||
+ | * [[vi]] | ||
+ | |||
+ | |||
+ | ===== EMACS 24 ==== | ||
+ | |||
+ | (M-x list-packages) | ||
+ | |||
+ | |||
+ | ===== KNOWLEDGE ===== | ||
+ | |||
+ | * https://www.MasteringEmacs.org/# To ReaD LearN | ||
+ | * http://sachachua.com/blog/series/read-lisp-tweak-emacs/# LearN | ||
+ | * http://refcards.com/refcards/gnu-emacs/# [[ToPrint]] | ||
+ | * http://tuhdo.github.io/emacs-tutor.html# LearN | ||
+ | |||
+ | |||
+ | ===== modes ===== | ||
+ | |||
+ | * https://code.litomisky.com/2014/10/24/getting-with-pylint-in-emacs/# | ||
+ | |||
+ | |||
+ | ===== MISC ===== | ||
+ | |||
+ | * http://kb.mozillazine.org/Emacs_Keybindings_(Firefox)#Any_OS.2C_without_GTK# [[WebBrowser]] | ||
+ | * https://play.google.com/store/apps/details?id=com.zielm.emacs&hl=fr | ||
+ | * https://ask.fedoraproject.org/en/question/10978/emacs-key-binding-ctrlspace-not-working-on-fedora-16-gnome-or-xfce/# LxDe | ||
+ | * https://github.com/serras/emacs-haskell-tutorial/blob/master/tutorial.md# | ||
+ | * http://melpa.milkbox.net/#/ PackageS | ||
+ | * http://lars.ingebrigtsen.no/2014/11/13/welcome-new-emacs-developers/# DeveL | ||
+ | * https://github.com/josteink/wsd-mode# UmL | ||
+ | * https://github.com/syl20bnr/spacemacs#introduction # PortagE | ||
+ | * https://zeekish.wordpress.com/2009/05/10/tramp-hangs-if-remote-shell-is-zsh/# Tramp ZsH EmacS | ||
+ | * https://emacsair.me/2018/12/19/forge-0.1/# GiT | ||
+ | * https://news.ycombinator.com/item?id=35006952 | ||
+ | * https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx# VsCode | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== MORE ===== | ||
+ | |||
+ | @TaG: [[Edit]] [[Programming]] [[SSH]] [[IDE]] [[Editor]] DeskTop KdE LxdE [[X11]] | ||
+ | |||
+ | {{http://rzr.online.fr/docs/contribs/files/desktop.png}} | ||
+ | |||
+ | {{http://img.linuxfr.org/img/687474703a2f2f332e62702e626c6f6773706f742e636f6d2f5f6457704347665535364a382f54414b6751346b626e53492f41414141414141414348382f3465644348354337656d412f73313630302f656d6163732b757365722e706e67/emacs+user.png}} | ||
+ | |||