X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=emacs%2Femacs.el;h=acef8dce7678dac1bdf8a65d04244e01b08c4dd3;hb=330d462077ceb2e532ab927ea1db50f47c0c6018;hp=f7adf6d2e963e1e77155102662a382085191d00b;hpb=e2d95bc1c299467adef576a90e5d026edeff1773;p=dotfiles.git diff --git a/emacs/emacs.el b/emacs/emacs.el index f7adf6d..acef8dc 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -1,7 +1,7 @@ ;; -*- emacs-lisp -*- ;; Author: Olivier Tetard -;; URL : http://www.miskin.be/ +;; URL : http://toutoune25.miskin.fr/ ;; This file is free software; you can redistribute it and/or modify it ;; under the terms of the GNU General Public License as published by the @@ -28,14 +28,8 @@ (push (expand-file-name "~/.elisp") load-path) -;; Mozmail is available in XEmacs CVS : -;; http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/net-utils/mozmail.el -(load "mozmail" t) -(load "tt25-passwords" t) -;; (require 'tt25-muse) -(load "tt25-erc" t) -(require 'color-theme) (require 'ido) +(require 'uniquify) (require 'themes) @@ -43,14 +37,8 @@ ;; | Couleurs et apparence ;; `---- -;(if window-system) - (color-theme-tango) -;; (color-theme-dark-laptop)) - -;old: (set-face-background 'default "black") - (if window-system - (progn + (progn (tool-bar-mode nil) (tooltip-mode nil) (scroll-bar-mode t))) @@ -73,6 +61,21 @@ (setq display-time-24hr-format t) ; Heure au format 24h (display-time) ; On affiche l'heure dans la barre (setq visible-bell t) ; On desactive les beeps +(setq inhibit-startup-screen t) ; On désactive le splash screen +(setq use-file-dialog nil) ; Désactivation des boites de +(setq use-dialog-box nil) ; fichiers GTK+ +(setq scroll-bar-mode 'right) +(column-number-mode 1) + +;; Configuration d'uniquify +(setq uniquify-buffer-name-style 'reverse) +(setq uniquify-separator "|") +(setq uniquify-after-kill-buffer-p t) +(setq uniquify-ignore-buffers-re "^\\*") + +;; Les copiers/coller doivent aller dans le clipboard de l'OS +(setq x-select-enable-clipboard t) +(setq interprogram-paste-function 'x-cut-buffer-or-selection-value) ;; Quand vous recevez un fichier .txt d'une machine dos/windows il est ;; très énervant de voir les ^M a chaque fin de ligne, utiliser M-x @@ -92,6 +95,9 @@ (set default-major-mode 'text-mode) (add-hook 'text-mode-hook 'turn-on-auto-fill) +;; Enable longlines-mode for LaTeX files +(add-hook 'latex-mode-hook 'longlines-mode) + ;; Impression (setq lpr-command "/usr/bin/gtklp") (setq ps-lpr-command "/usr/bin/gtklp") @@ -155,7 +161,7 @@ (setq debian-changelog-full-name "Olivier Tétard") (setq debian-changelog-mailing-address "olivier.tetard@miskin.fr") -(setq safe-local-variable-values +(setq safe-local-variable-values (quote ((TeX-PDF-mode . PDF)))) ;; Stolen from http://xemacs.seanm.ca/lisp/dired-extras.el