;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. ;; You may delete these explanatory comments. (package-initialize) (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. '(custom-enabled-themes (quote (tsdh-light))) '(package-selected-packages (quote (helm projectile use-package))) '(safe-local-variable-values (quote ((TeX-master . "../theLatexBookSci.tex") (TeX-master . 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. ) ;; My basic configuration Gerardo Marx 15/Jul/2020 ;; Set default font: (add-to-list 'default-frame-alist '(font . "Source Code Pro-18")) ;; line numbers: ;;(when (version<= "26.0.50" emacs-version ) ;; (global-display-line-numbers-mode)) ;; package manager: (require 'package) (setq package-enable-at-startup nil) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (package-initialize) (unless (package-installed-p 'use-package) n (package-refresh-contents) (package-install 'use-package)) (eval-when-compile (require 'use-package)) ;; projectile configuration: (projectile-mode +1) (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map) (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) (projectile-global-mode) (setq projectile-completion-system 'helm) (helm-projectile-on) ;; helm (require 'helm-config) (global-set-key (kbd "M-x") #'helm-M-x) (global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks) (global-set-key (kbd "C-x C-f") #'helm-find-files) (helm-mode 1) ;; pdlatex: (setq latex-run-command "pdflatex") (setq-default TeX-master nil) ;; Use pdf-tools to open PDF files (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)