My emacs configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.4 KiB

  1. ;; Added by Package.el. This must come before configurations of
  2. ;; installed packages. Don't delete this line. If you don't want it,
  3. ;; just comment it out by adding a semicolon to the start of the line.
  4. ;; You may delete these explanatory comments.
  5. (package-initialize)
  6. (custom-set-variables
  7. ;; custom-set-variables was added by Custom.
  8. ;; If you edit it by hand, you could mess it up, so be careful.
  9. ;; Your init file should contain only one such instance.
  10. ;; If there is more than one, they won't work right.
  11. '(custom-enabled-themes (quote (tsdh-light)))
  12. '(package-selected-packages (quote (helm projectile use-package)))
  13. '(safe-local-variable-values
  14. (quote
  15. ((TeX-master . "../theLatexBookSci.tex")
  16. (TeX-master . t)))))
  17. (custom-set-faces
  18. ;; custom-set-faces was added by Custom.
  19. ;; If you edit it by hand, you could mess it up, so be careful.
  20. ;; Your init file should contain only one such instance.
  21. ;; If there is more than one, they won't work right.
  22. )
  23. ;; My basic configuration Gerardo Marx 15/Jul/2020
  24. ;; Set default font:
  25. (add-to-list 'default-frame-alist
  26. '(font . "Source Code Pro-18"))
  27. ;; line numbers:
  28. ;;(when (version<= "26.0.50" emacs-version )
  29. ;; (global-display-line-numbers-mode))
  30. ;; package manager:
  31. (require 'package)
  32. (setq package-enable-at-startup nil)
  33. (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
  34. (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
  35. (package-initialize)
  36. (unless (package-installed-p 'use-package)
  37. n (package-refresh-contents)
  38. (package-install 'use-package))
  39. (eval-when-compile
  40. (require 'use-package))
  41. ;; projectile configuration:
  42. (projectile-mode +1)
  43. (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
  44. (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
  45. (projectile-global-mode)
  46. (setq projectile-completion-system 'helm)
  47. (helm-projectile-on)
  48. ;; helm
  49. (require 'helm-config)
  50. (global-set-key (kbd "M-x") #'helm-M-x)
  51. (global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
  52. (global-set-key (kbd "C-x C-f") #'helm-find-files)
  53. (helm-mode 1)
  54. ;; pdlatex:
  55. (setq latex-run-command "pdflatex")
  56. (setq-default TeX-master nil)
  57. ;; Use pdf-tools to open PDF files
  58. (setq TeX-view-program-selection '((output-pdf "PDF Tools"))
  59. TeX-source-correlate-start-server t)
  60. ;; Update PDF buffers after successful LaTeX runs
  61. (add-hook 'TeX-after-compilation-finished-functions
  62. #'TeX-revert-document-buffer)