;;;; platform-indenpendent configs : ;;; shortcuts (global-set-key "\M-g" 'goto-line) (global-set-key "\C-c\C-c" 'comment-region) (global-set-key "\C-cc" 'comment-region) (global-set-key "\C-cu" 'uncomment-region) ;;; shortcuts to personal functions : (global-set-key "\M-s" 'switch-between-code-and-header) ; pas facile de trouver des combos libres !!! (global-set-key "\M-n" 'switch-to-buffer) ;(global-set-key "\M-o" 'ZeMaCS-find-header-file-under-cursor) ; a mettre dans zemacs.el ... parce qu'il est aussi utilise par le mode Z. ;;; additional filenames extensions : (setq auto-mode-alist (append '(("\\.zdoc$" . latex-mode)) auto-mode-alist)) ;;; Paste at point NOT at cursor (setq mouse-yank-at-point 't) ;;; ispell default language : ;(setq ispell-dictionary "british") ;; il est bugge ? ;;; Always end a file with a newline (setq require-final-newline t) ;;; Load additional modes : (setq load-path (append (list "~/profile.d/emacs-lisp" "~/profile.d/emacs-lisp/cc-mode-5.31.3") load-path)) ;;; tabbar-mode: provides a list of buffers near the menu-bar (load "tabbar") (tabbar-mode) ;(ff-path-install ... peut etre interessant !) ;(load "color-theme") ;; available from http://www.emacswiki.org/cgi-bin/wiki?ColorTheme ;(color-theme-robin-hood) (load "generic") (load "$Z7PATH/lib/ZeBuLoN") ; could also be : ; (autoload 'zebulon-mode "ZeBuLoN" "ZeBuLoN major mode" t) ; (setq auto-mode-alist (append '(("\\.inp$" . zebulon-mode)) auto-mode-alist)) (load "MSD") (load "MpCCI") (load "library_files_mode") ;(load "gnuplot") ;; ;; should add something like ;; (defun zemacs () "Loads zemacs additional function." ;; (interactive) ;; (load "zemacs") ;; (reopen all buffers to take into account the .h->C++) ;; ) ;; Font par défaut ;(set-default-font "7x14") ;(set-frame-font "7x14") ;;; stuff that doesn't seem to work : ;(load "color-theme") ;(color-theme-deep-blue) ;(require 'c-font-lock-keywords) ;; marche pas ??? ;(load "toggle-source") marche pas bien comme module ? ;(autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t) ; (setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) auto-mode-alist)) ;; ;; Load CEDET ;; (load-file "~/profile.d/emacs-lisp/cedet-1.0pre3/common/cedet.el") ;; ;; Enabling various SEMANTIC minor modes. See semantic/INSTALL for more ideas. ;; ;; Select one of the following ;; (semantic-load-enable-code-helpers) ;; ;; (semantic-load-enable-guady-code-helpers) ;; ;; (semantic-load-enable-excessive-code-helpers) ;; ;; Enable this if you develop in semantic, or develop grammars ;; ;; (semantic-load-enable-semantic-debugging-helpers)