(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. '(inhibit-startup-screen 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. ) ;; attempt to get flymake to use texlive, instead of texify (defun flymake-get-tex-args (file-name) (list "latex" (list "-file-line-error-style" file-name))) ;; run latex-math-mode instead of latex-mode (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) ;; mouse scrolling (mouse-wheel-mode t) ;; set default ispell dictionary to 'en' (ispell-change-dictionary "english") ;(ispell-change-dictionary "dansk") ;; spellcheck in LaTex mode (add-hook `latex-mode-hook `flyspell-mode) (add-hook `tex-mode-hook `flyspell-mode) (add-hook `bibtex-mode-hook `flyspell-mode) ;; Show line-number and column-number in the mode line (line-number-mode 1) (column-number-mode 1) ;; highlight current line (global-hl-line-mode 1) ;; Use "y or n" for answers instead of complete words "yes or no" (fset 'yes-or-no-p 'y-or-n-p) ;; enable cua mode for cut/copy/paste (cua-mode) ;; global line number mode (global-linum-mode) ;; disable toolbar, since it's annoying and wastes a lot of space. (tool-bar-mode -1)