Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (setq custom-file "~/.emacs-custom.el")
  2. (load custom-file)
  3.  
  4. ;; numéro lignes+colonnes
  5. (column-number-mode t)
  6. (line-number-mode t)
  7.  
  8. ;; Affiche l'heure
  9. (display-time-mode t)
  10.  
  11. ;; beep visuels
  12. (setq visible-bell t)
  13.  
  14. ;; "y" "n" a la place de "yes" "no"
  15. (fset 'yes-or-no-p 'y-or-n-p)
  16.  
  17. ;; style indentation
  18. (setq c-basic-offset 4)
  19. (c-set-offset 'substatement-open '0)
  20. (c-set-offset 'brace-list-open '0)
  21. (c-set-offset 'statement-case-open '0)
  22.  
  23. (global-font-lock-mode t)
  24. (setq font-lock-maximum-decoration t)
  25. (transient-mark-mode 1)
  26.  
  27. ;;PHP
  28. (autoload 'php-mode "php-mode.el" "Php mode." t)
  29. (setq auto-mode-alist (append '(("/*.\.php[345]?$" . php-mode)) auto-mode-alist))
  30.  
  31. ;; AucTeX
  32. (load "auctex.el" nil t t)
  33. (load "preview-latex.el" nil t t)
  34. (setq TeX-PDF-mode t) ;; PDF par défaut
  35. (setq TeX-auto-save t)
  36. (setq TeX-parse-self t)
  37. (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) ;; mode math activé
  38.  
  39. ;; CC-mode
  40. (autoload 'awk-mode "cc-mode" nil t)
  41.  
  42. ;; HTML helper
  43. (autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
  44. (setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
  45.  
  46. ;; correcteur orthographique
  47. (setq ispell-program-name "aspell")
  48. (setq ispell-local-dictionary "francais")
  49.  
  50. ;; DocView
  51. (add-hook 'doc-view-mode-hook 'auto-revert-mode) ;; refresh automatique
  52. (setq doc-view-continuous t) ;; passer de fin de page à page suivante directement
  53.  
  54. ;; theme couleur
  55. (require 'color-theme)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement