X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=emacs%2Femacs.el;h=acef8dce7678dac1bdf8a65d04244e01b08c4dd3;hb=330d462077ceb2e532ab927ea1db50f47c0c6018;hp=b5e75758183dca2a1f481507ce7d6cf6e7dac59d;hpb=b7839819ec4a48ce922e880e6ca3bdd9321baf94;p=dotfiles.git diff --git a/emacs/emacs.el b/emacs/emacs.el index b5e7575..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,13 +28,6 @@ (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) @@ -44,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))) @@ -74,6 +61,11 @@ (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) @@ -81,6 +73,10 @@ (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 ;; dos-unix pour vous en débarrasser. (J. Danjou) @@ -99,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") @@ -162,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