;;——————————————————————————
(setq initial-frame-alist '1)
;;(add-hook 'c++-mode-hook 'my-c++-mode-hook)
;;————————————————————————————————
;; make ispell ignore the arguments of some more latex commands
(setq ispell-tex-skip-alists
(list
(append
(car ispell-tex-skip-alists) ;tell ispell to ignore content of this:
'(("\\\\cite" ispell-tex-arg-end)
("\\\\nocite" ispell-tex-arg-end)
("\\\\includegraphics" ispell-tex-arg-end)
("\\\\bibliography" ispell-tex-arg-end)
("\\\\ref" ispell-tex-arg-end)
("\\\\eqref" ispell-tex-arg-end)
("\\\\overpic" ispell-tex-arg-end)
("\\\\label" ispell-tex-arg-end)))
(cadr ispell-tex-skip-alists)))
;;————————————————————————————————
;; open *.tpl files per default in C++-mode
(setq auto-mode-alist (cons '(“\\.tpl\\'” . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '(“\\.ipp\\'” . c++-mode) auto-mode-alist))
;;————————————————————————————————
;;C++-something ??
(add-hook 'c++-mode-hook (function (lambda () (imenu-add-menubar-index))))
;;————————————————————————————————
;;activate AUCtex
(require 'tex-site)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil) ;Query for master file
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
;;————————————————————————————————
;;reftex
(add-hook 'latex-mode-hook 'turn-on-reftex)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-auctex t)
(setq reftex-label-alist '(AMSTeX))
;; flyspell
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(defun my-LaTeX-mode-hook ()
;; rebind TeX-complete-symbol to M-]
(local-set-key "\M-]" 'TeX-complete-symbol)
;; insert a pair of braces
;;(local-set-key "{" 'TeX-insert-braces)
)
(add-hook 'LaTeX-mode-hook 'my-LaTeX-mode-hook)
(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.
'(c-default-style “gnu”)
'(case-fold-search t)
'(current-language-environment “Latin-1”)
'(default-input-method “latin-1-prefix”)
'(ecb-options-version “2.27”)
'(face-font-family-alternatives (quote 2)))
'(global-font-lock-mode t nil (font-lock))
'(load-home-init-file t t)
'(ps-black-white-faces (quote 3)))
'(ps-default-fg (quote (0.0 0.0 0.0)))
'(ps-print-color-p t)
'(query-user-mail-address nil)
'(safe-local-variable-values (quote 4)))
'(show-paren-mode t nil (paren))
'(tab-width 2))
;;———————————————————————–
(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 5)))
'(button 6) (:background “indian red” :underline t))))
'(cursor 7)))
'(delete-char [4])
'(font-latex-bold-face 8) (:inherit bold :foreground “medium blue”))))
'(font-latex-italic-face 9) (:inherit italic :foreground “medium blue”))))
'(fringe 10)))
'(header-line 11) (:inherit mode-line :background “black” :foreground “green3” :box nil))))
'(menu 12) (:background “black” :foreground “green3”))))
'(mode-line 13) (:background “black” :foreground “green3” :box (:line-width -1 :style released-button)))))
'(mode-line-inactive 14) 15) (:background “black” :foreground “grey80” :box (:line-width -1 :color “black”) :weight light))))
'(mouse 16)))
'(region 17)))
'(scroll-bar 18)))
'(tool-bar 19) (:background “black” :foreground “green3” :box (:line-width 1 :style released-button))))))