From 5d528dee12f824b717d3fb2f14c530eb2c38dfe4 Mon Sep 17 00:00:00 2001 From: blendoit Date: Tue, 3 Sep 2019 20:58:00 -0700 Subject: tweaks --- blendoit-ucla-theme.el | 10 +++++----- init_blendoit.el | 1 + init_emacs.el | 6 +++--- init_latex.el | 17 +++++++++++++++++ transient/history.el | 1 - 5 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 init_latex.el delete mode 100644 transient/history.el diff --git a/blendoit-ucla-theme.el b/blendoit-ucla-theme.el index 47f2d8c..b7fc88d 100644 --- a/blendoit-ucla-theme.el +++ b/blendoit-ucla-theme.el @@ -1,5 +1,5 @@ (deftheme blendoit-ucla - "Created 2019-09-03.") + "Derived from UCLA's official brand colors: http://brand.ucla.edu/identity/colors") (custom-theme-set-faces 'blendoit-ucla @@ -9,14 +9,14 @@ '(escape-glyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown")))) '(homoglyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown")))) '(minibuffer-prompt ((t (:foreground "#FFD100")))) - '(highlight ((((class color) (min-colors 88) (background light)) (:background "darkseagreen2")) (((class color) (min-colors 88) (background dark)) (:background "darkolivegreen")) (((class color) (min-colors 16) (background light)) (:background "darkseagreen2")) (((class color) (min-colors 16) (background dark)) (:background "darkolivegreen")) (((class color) (min-colors 8)) (:foreground "black" :background "green")) (t (:inverse-video t)))) + '(highlight ((t (:background "#FFD100" :foreground "#003B5C")))) '(region ((t (:background "#C3D7EE" :distant-foreground "#003B5C")))) '(shadow ((((class color grayscale) (min-colors 88) (background light)) (:foreground "grey50")) (((class color grayscale) (min-colors 88) (background dark)) (:foreground "grey70")) (((class color) (min-colors 8) (background light)) (:foreground "green")) (((class color) (min-colors 8) (background dark)) (:foreground "yellow")))) '(secondary-selection ((((class color) (min-colors 88) (background light)) (:background "yellow1")) (((class color) (min-colors 88) (background dark)) (:background "SkyBlue4")) (((class color) (min-colors 16) (background light)) (:background "yellow")) (((class color) (min-colors 16) (background dark)) (:background "SkyBlue4")) (((class color) (min-colors 8)) (:foreground "black" :background "cyan")) (t (:inverse-video t)))) '(trailing-whitespace ((((class color) (background light)) (:background "red1")) (((class color) (background dark)) (:background "red1")) (t (:inverse-video t)))) '(font-lock-builtin-face ((((class grayscale) (background light)) (:weight bold :foreground "LightGray")) (((class grayscale) (background dark)) (:weight bold :foreground "DimGray")) (((class color) (min-colors 88) (background light)) (:foreground "dark slate blue")) (((class color) (min-colors 88) (background dark)) (:foreground "LightSteelBlue")) (((class color) (min-colors 16) (background light)) (:foreground "Orchid")) (((class color) (min-colors 16) (background dark)) (:foreground "LightSteelBlue")) (((class color) (min-colors 8)) (:weight bold :foreground "blue")) (t (:weight bold)))) '(font-lock-comment-delimiter-face ((default (:inherit (font-lock-comment-face))))) - '(font-lock-comment-face ((t (:foreground "#FF4F00")))) + '(font-lock-comment-face ((t (:foreground "#FFD100")))) '(font-lock-constant-face ((((class grayscale) (background light)) (:underline (:color foreground-color :style line) :weight bold :foreground "LightGray")) (((class grayscale) (background dark)) (:underline (:color foreground-color :style line) :weight bold :foreground "Gray50")) (((class color) (min-colors 88) (background light)) (:foreground "dark cyan")) (((class color) (min-colors 88) (background dark)) (:foreground "Aquamarine")) (((class color) (min-colors 16) (background light)) (:foreground "CadetBlue")) (((class color) (min-colors 16) (background dark)) (:foreground "Aquamarine")) (((class color) (min-colors 8)) (:foreground "magenta")) (t (:underline (:color foreground-color :style line) :weight bold)))) '(font-lock-doc-face ((t (:inherit (font-lock-string-face))))) '(font-lock-function-name-face ((((class color) (min-colors 88) (background light)) (:foreground "Blue1")) (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue")) (((class color) (min-colors 16) (background light)) (:foreground "Blue")) (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue")) (((class color) (min-colors 8)) (:weight bold :foreground "blue")) (t (:weight bold :inverse-video t)))) @@ -29,13 +29,13 @@ '(font-lock-type-face ((((class grayscale) (background light)) (:weight bold :foreground "Gray90")) (((class grayscale) (background dark)) (:weight bold :foreground "DimGray")) (((class color) (min-colors 88) (background light)) (:foreground "ForestGreen")) (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen")) (((class color) (min-colors 16) (background light)) (:foreground "ForestGreen")) (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen")) (((class color) (min-colors 8)) (:foreground "green")) (t (:underline (:color foreground-color :style line) :weight bold)))) '(font-lock-variable-name-face ((((class grayscale) (background light)) (:slant italic :weight bold :foreground "Gray90")) (((class grayscale) (background dark)) (:slant italic :weight bold :foreground "DimGray")) (((class color) (min-colors 88) (background light)) (:foreground "sienna")) (((class color) (min-colors 88) (background dark)) (:foreground "LightGoldenrod")) (((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod")) (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod")) (((class color) (min-colors 8)) (:weight light :foreground "yellow")) (t (:slant italic :weight bold)))) '(font-lock-warning-face ((t (:inherit (error))))) - '(button ((t (:inherit (link))))) + '(button ((t (:background "white" :foreground "#003B5C")))) '(link ((((class color) (min-colors 88) (background light)) (:underline (:color foreground-color :style line) :foreground "RoyalBlue3")) (((class color) (background light)) (:underline (:color foreground-color :style line) :foreground "blue")) (((class color) (min-colors 88) (background dark)) (:underline (:color foreground-color :style line) :foreground "cyan1")) (((class color) (background dark)) (:underline (:color foreground-color :style line) :foreground "cyan")) (t (:inherit (underline))))) '(link-visited ((default (:inherit (link))) (((class color) (background light)) (:foreground "magenta4")) (((class color) (background dark)) (:foreground "violet")))) '(fringe ((t (:background "#8BB8E8")))) '(header-line ((default (:inherit (mode-line))) (((type tty)) (:underline (:color foreground-color :style line) :inverse-video nil)) (((class color grayscale) (background light)) (:box nil :foreground "grey20" :background "grey90")) (((class color grayscale) (background dark)) (:box nil :foreground "grey90" :background "grey20")) (((class mono) (background light)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "black" :background "white")) (((class mono) (background dark)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "white" :background "black")))) '(tooltip ((((class color)) (:inherit (variable-pitch) :foreground "black" :background "lightyellow")) (t (:inherit (variable-pitch))))) - '(mode-line ((t (:box (:line-width -1 :style released-button) :foreground "#000000" :background "#FFB81C")))) + '(mode-line ((t (:background "#FFD100" :foreground "#000000" :box (:line-width -1 :style released-button))))) '(mode-line-buffer-id ((t (:weight bold)))) '(mode-line-emphasis ((t (:weight bold)))) '(mode-line-highlight ((((class color) (min-colors 88)) (:box (:line-width 2 :color "grey40" :style released-button))) (t (:inherit (highlight))))) diff --git a/init_blendoit.el b/init_blendoit.el index d51170e..cd47284 100644 --- a/init_blendoit.el +++ b/init_blendoit.el @@ -29,3 +29,4 @@ (add-to-list 'default-frame-alist '(alpha . (85 . 50))) (load "~/.emacs.d/init_org-mode.el") +(pdf-tools-install) diff --git a/init_emacs.el b/init_emacs.el index fa8d89e..5644e5c 100644 --- a/init_emacs.el +++ b/init_emacs.el @@ -3,17 +3,17 @@ ;; 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. - '(blink-cursor-mode t) '(custom-enabled-themes (quote (blendoit-ucla))) '(custom-safe-themes (quote - ("6c3e0ab8b2a65dc980913556ffd19cd0838fdf6dd60509b7ec6964ab1bdc9a02" "22615d6e3875a2bdbcb1880352915c3420747227cc4d6189901da246f372109e" "5eeb46715f0f75190b99a17eee27e4481b34ef12d56e6eb359e69bf88b968055" "b1a9f91180ae9011bf6a8929d24e3e3aaedb44518a97eb9b6cdb3c35fdaeaf63" default))) + ("37d9d29b4be64ce7f3bcee989b5b4e410520c44ed61db200dc80518abdf2de5d" "f3c5904d7b27f967f9bc93ef21757e84752b52a3d091a535e32bca4324c95419" default))) '(display-line-numbers-type (quote visual)) '(global-display-line-numbers-mode t) '(package-selected-packages (quote - (org-bullets magit latex-preview-pane evil-leader))) + (pdf-tools org-bullets magit latex-preview-pane evil-leader))) '(scroll-bar-mode nil) + '(show-paren-mode t) '(tool-bar-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/init_latex.el b/init_latex.el new file mode 100644 index 0000000..7500166 --- /dev/null +++ b/init_latex.el @@ -0,0 +1,17 @@ +;; Function obtained from https://wiki.archlinux.org/index.php/Emacs#SyncTeX_support + +(defcustom tex-my-viewer "zathura --fork -s -x \"emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"'\"'\"%{input}\"'\"'\")) (goto-line %{line}))'\"" + "PDF Viewer for TeX documents. You may want to fork the viewer +so that it detects when the same document is launched twice, and +persists when Emacs gets closed. + +Simple command: + + zathura --fork + +We can use + + emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))' + +to reverse-search a pdf using SyncTeX. Note that the quotes and double-quotes matter and must be escaped appropriately." +:safe 'stringp) diff --git a/transient/history.el b/transient/history.el deleted file mode 100644 index 90b5a84..0000000 --- a/transient/history.el +++ /dev/null @@ -1 +0,0 @@ -nil \ No newline at end of file -- cgit v1.2.3