- Questo topic ha 0 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 16 anni, 7 mesi fa da .
-
Topic
-
Ciao a tutti, questo post non è una richiesta d’aiuto ma vuole essere un modo per condividere qualcosa su LaTeX, in particolare uno schema di colori per emacs.Per utilizzarlo dovete installare il pacchetto Color-theme di emacs, sulla mia Archlinux si può fare con il comando:
`
sudo pacman -S emacs-color-theme
`penso che sulle altre distro sia molto simile, fatto questo si deve andare a modificare il file .emacs presente nella vostra /home aggiugendo le seguenti righe in testa al file
`
(require 'color-theme)
(load-file “~/path/color-theme-galois.el”)
(color-theme-galois)
`al posto di ~/path/color-theme-galois.el dovete mettere il path del vostro color-theme-galois.el… ed ecco il file color-theme-galois.el:
`
(defun color-theme-galois ()
“Color theme by Galois, created 2010-01-21.”
(interactive)
(color-theme-install
'(color-theme-galois
((background-color . “black”)
(background-mode . dark)
(border-color . “black”)
(cursor-color . “black”)
(foreground-color . “LightGray”)
(mouse-color . “black”))
((blank-space-face . blank-space-face)
(blank-tab-face . blank-tab-face)
(list-matching-lines-face . bold)
(view-highlight-face . highlight))
(default ((t (nil))))
(blank-space-face ((t (:background “LightGray”))))
(blank-tab-face ((t (:background “green” :foreground “black”))))
(bold ((t (:bold t))))
(bold-italic ((t (:italic t :bold t))))
;; (font-lock-builtin-face ((t (:italic t :bold t :foreground “LightSteelBlue”))))
(font-lock-comment-face ((t (:italic t :foreground “yellow”))))
(font-lock-constant-face ((t (:foreground “green”))))
(font-lock-function-name-face ((t (:italic t :bold t :foreground “Blue”))))
(font-lock-keyword-face ((t (:foreground “red”))))
(font-lock-preprocessor-face ((t (:italic t :foreground “HotPink”))))
(font-lock-string-face ((t (:foreground “green”))))
;; (font-lock-reference-face ((t (:italic t :bold t :foreground “LightSteelBlue”))))
;; (font-lock-type-face ((t (:italic t :foreground “LightSlateBlue”))))
(font-lock-variable-name-face ((t (:foreground “blue”))))
(font-lock-warning-face ((t (:bold t :foreground “blue”))));; Comandi specifici per LaTeX
(font-latex-math-face ((t (:foreground “green”))))
(font-latex-italic-face ((t (:foreground “orange”))))
(font-latex-bold-face ((t (:foreground “orange”))))
(font-latex-string-face ((t (:foreground “orange”))))
(font-latex-verbatim-face ((t (:foreground “orange”))))
;;(highlight ((t (:background “yellow” :foreground “red”))))
(isearch ((t (:background “dim gray” :foreground “aquamarine”))))
(ispell-face ((t (:bold t :background “#3454b4” :foreground “yellow”))))
(italic ((t (:italic t))))
(menu ((t (:background “#304020” :foreground “navajo white”))))
(modeline ((t (:background “#304020” :foreground “navajo white”))))
(modeline-buffer-id ((t (:background “navajo white” :foreground “dim gray”))))
(modeline-mousable ((t (:background “light goldenrod” :foreground “dim gray”))))
(modeline-mousable-minor-mode ((t (:background “dim gray” :foreground “light goldenrod”))))
(region ((t (:background “dim gray” :foreground “aquamarine”))))
(secondary-selection ((t (:background “darkslateblue” :foreground “light goldenrod”))))
(show-paren-match-face ((t (:background “turquoise” :foreground “black”))))
(show-paren-mismatch-face ((t (:background “purple” :foreground “white”))))
(underline ((t (:underline t))))
(zmacs-region ((t (:background “dim gray” :foreground “aquamarine”)))))))
`
Spero possa essere utile a qualcuno.Ciao Alberto
- Devi essere connesso per rispondere a questo topic.