emacs.el: suppression dépendances
[dotfiles.git] / emacs / emacs.el
index f7adf6d..acef8dc 100644 (file)
@@ -1,7 +1,7 @@
 ;; -*- emacs-lisp -*-
 
 ;; Author: Olivier Tetard <olivier.tetard@miskin.fr>
-;; 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
 
 (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)
 
 
 ;; | 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)))
 (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")
 (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