Compare commits

...

2 Commits

2 changed files with 43 additions and 12 deletions
Split View
  1. +30
    -12
      .emacs
  2. +13
    -0
      install-source-code-fonts.sh

+ 30
- 12
.emacs View File

@ -33,6 +33,8 @@
;; frame size
(setq initial-frame-alist '((top . 0)(left . 0)
(width . 80)(height . 50)))
(set-frame-parameter (selected-frame) 'alpha '(95 . 15)) ;;transparency
(add-to-list 'default-frame-alist '(alpha . (95 . 15))) ;;transparency
;;+++++++++++
;; Doom-themes, all-the-icons, mode-line and font
(unless (package-installed-p 'doom-themes)
@ -59,19 +61,36 @@
(unless (package-installed-p 'all-the-icons)
(package-install 'all-the-icons))
;; Set default font:
;;(add-to-list 'default-frame-alist
;; '(font . "Source Code Pro-18"))
(add-to-list 'default-frame-alist
'(font . "Source Code Pro-14"))
;;+++++++
;;auctex:
(is-installed 'auctex)
(is-installed 'pdf-tools);; PDFtools
(pdf-tools-install)
(setenv "PATH" (concat "/Library/TeX/texbin:"
(getenv "PATH")))
(add-to-list 'exec-path "/Library/TeX/texbin")
(setq TeX-auto-save t)
(setq TeX-save-query nil)
(setq LaTeX-includegraphics-read-file 'LaTeX-includegraphics-read-file-relative)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-source-correlate-start-server t)
;; Update PDF buffers after successful LaTeX runs
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
(add-hook 'pdf-view-mode-hook
(lambda () (pdf-tools-enable-minor-modes)))
(setq TeX-source-correlate-method 'synctex)
;;--end----
;;..............
;;========
;;Flyspell
(setq ispell-program-name "/usr/bin/aspell")
@ -105,7 +124,6 @@
(is-installed 'neotree)
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)
;;====================
;; emacs startup config
(setq inhibit-startup-message nil) ;;inhibit startup
@ -120,18 +138,18 @@
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
(show-paren-mode +1) ;; show matching parentheses
;;---------
(custom-set-variables
;; custom-set-variables was added by Custom.
;;Keybindings:
;;(global-set-key (kbd "M-x") 'helm-M-x)
;;................
(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.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
(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.
)
)

+ 13
- 0
install-source-code-fonts.sh View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
cd Downloads
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
if [ ! -d "~/.fonts" ] ; then
mkdir ~/.fonts
fi
unzip 1.050R-it.zip
cp source-code-pro-*-it/OTF/*.otf ~/.fonts/
rm -rf source-code-pro*
rm 1.050R-it.zip
cd ~/
fc-cache -f -v

Loading…
Cancel
Save