(load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(TeX-source-specials-mode t) '(inhibit-startup-screen t) '(reftex-plug-into-AUCTeX t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :foundry "unknown" :family "Monaco"))))) (require 'color-theme) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) (setq scroll-bar-mode-explicit t) (set-scroll-bar-mode `right) (require 'reftex) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode '(reftex-cite-format natbib) (setq-default TeX-master t) (setq TeX-parse-self t) (setq TeX-auto-save t) ; Outline-minor-mode key map (define-prefix-command 'cm-map nil "Outline-") ; HIDE (define-key cm-map "q" 'hide-sublevels) ; Hide everything but the top-level headings (define-key cm-map "t" 'hide-body) ; Hide everything but headings (all body lines) (define-key cm-map "o" 'hide-other) ; Hide other branches (define-key cm-map "c" 'hide-entry) ; Hide this entry's body (define-key cm-map "l" 'hide-leaves) ; Hide body lines in this entry and sub-entries (define-key cm-map "d" 'hide-subtree) ; Hide everything in this entry and sub-entries ; SHOW (define-key cm-map "a" 'show-all) ; Show (expand) everything (define-key cm-map "e" 'show-entry) ; Show this heading's body (define-key cm-map "i" 'show-children) ; Show this heading's immediate child sub-headings (define-key cm-map "k" 'show-branches) ; Show all sub-headings under this heading (define-key cm-map "s" 'show-subtree) ; Show (expand) everything in this heading & below ; MOVE (define-key cm-map "u" 'outline-up-heading) ; Up (define-key cm-map "n" 'outline-next-visible-heading) ; Next (define-key cm-map "p" 'outline-previous-visible-heading) ; Previous (define-key cm-map "f" 'outline-forward-same-level) ; Forward - same level (define-key cm-map "b" 'outline-backward-same-level) ; Backward - same level (global-set-key "\M-o" cm-map) ;;-------------------------------------------------------------------- ;; Lines enabling gnuplot-mode ;; move the files gnuplot.el to someplace in your lisp load-path or ;; use a line like ;; (setq load-path (append (list "/path/to/gnuplot") load-path)) ;; these lines enable the use of gnuplot mode (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t) (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t) ;; this line automatically causes all files with the .gp extension to ;; be loaded into gnuplot mode (setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) auto-mode-alist)) ;; This line binds the function-9 key so that it opens a buffer into ;; gnuplot mode (global-set-key [(f9)] 'gnuplot-make-buffer) ;; end of line for gnuplot-mode ;;--------------------------------------------------------------------