Configuration Emacs

Voici un exemple de configuration que je trouve pratique. Je le laisse ici comme mémo :)

;; Coloration syntaxique (global-font-lock-mode t) ;; Afficher numéro de ligne et de colone (column-number-mode t) (line-number-mode t) ;; Selection PC (avec Shift) (custom-set-variables '(pc-selection-mode t nil (pc-select))) ;; Mollette pour le defilement (custom-set-variables '(mouse-wheel-mode t nil (mwheel))) ;; Afficher l'heure et la date (setq display-time-24hr-format t) (setq display-time-day-and-date t) (display-time) ;; Bips Visuels (setq visible-bell t) ;; Afficher la parenthese correspondante (require 'paren) (show-paren-mode) ;; Couleur de fond (set-background-color "Black") ;; Couleur du texte (set-foreground-color "White") ;; Couleur du curseur (set-cursor-color "Green") (set-mouse-color "Green") ;; Enlever le message au démarrage (setq inhibit-startup-message t) ;; Enlever la toolbar (tool-bar-mode -1) ;; Remplacer le texte selectionné si on tape (delete-selection-mode t) ;; Changer le titre de la fenetre (setq frame-title-format "K's Emacs %b" ;; Wordwrap (add-hook 'text-mode-hook 'turn-on-auto-fill)

;; ————–RACCOURCIS CLAVIER ;; ** F9 -> Compiler (global-set-key [f9] ‘compile) ;; ** F2 -> Enregistrer (global-set-key [f2] ‘save-buffer) ;; ** F3 -> Charger (global-set-key [f3] ‘find-file) ;; ** F12 -> Goto (global-set-key [f12] ‘goto-line) ;; ** CtrlZ -> Annuler (global-set-key [(control z)] ‘undo) ;; ** CtrlOrigine -> Debut du buffer (global-set-key [(control home)] ‘beginning-of-buffer) ;; ** CtrlFin -> Fin du buffer (global-set-key [(control end)] ‘end-of-buffer) ;; ** Origine -> Debut de la ligne (global-set-key [home] ‘beginning-of-line) ;; ** Fin -> Fin de la ligne (global-set-key [end] ‘end-of-line)

About Thomas Pelletier

17-year old student fond of math, science and IT. I like spending my spare time building websites with nice tools such as Django, Mercurial and Textmate. New technologies and web services are some of my passions. When I've something I'd like to talk about, I write a post and publish it on this website.
This entry was posted in None and tagged . Bookmark the permalink.
blog comments powered by Disqus