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.

82 lines
3.0 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. ;; Set up package.el to work with MELPA
  7. (require 'package)
  8. (add-to-list 'package-archives
  9. '("melpa" . "https://melpa.org/packages/"))
  10. (package-initialize)
  11. ;;(package-refresh-contents)
  12. ;;--------------
  13. ;; Packages Gerardo Marx/Jul/2020:
  14. ;; Enable Evil
  15. (require 'evil)
  16. (evil-mode 1)
  17. ;; Projectile configuration:
  18. (projectile-mode +1)
  19. (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
  20. (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
  21. (projectile-global-mode)
  22. (setq projectile-completion-system 'helm)
  23. (helm-projectile-on)
  24. ;; Helm
  25. (require 'helm-config)
  26. (global-set-key (kbd "M-x") #'helm-M-x)
  27. (global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
  28. (global-set-key (kbd "C-x C-f") #'helm-find-files)
  29. (helm-mode 1)
  30. ;; pdlatex:
  31. (setq latex-run-command "pdflatex")
  32. (setq-default TeX-master nil)
  33. ;; Use pdf-tools to open PDF files
  34. (setq TeX-view-program-selection '((output-pdf "PDF Tools"))
  35. TeX-source-correlate-start-server t)
  36. ;; Update PDF buffers after successful LaTeX runs
  37. (add-hook 'TeX-after-compilation-finished-functions
  38. #'TeX-revert-document-buffer)
  39. ;;--------------------
  40. (custom-set-variables
  41. ;; custom-set-variables was added by Custom.
  42. ;; If you edit it by hand, you could mess it up, so be careful.
  43. ;; Your init file should contain only one such instance.
  44. ;; If there is more than one, they won't work right.
  45. '(custom-enabled-themes (quote (misterioso)))
  46. '(package-selected-packages (quote (virtualenvwrapper helm projectile use-package)))
  47. '(safe-local-variable-values
  48. (quote
  49. ((pyvenv-workon . keesman_env)
  50. (org-edit-src-content . 0)
  51. (org-src-preserve-indentation . t)
  52. (TeX-master . "../theLatexBookSci.tex")
  53. (TeX-master . t))))
  54. '(tool-bar-mode nil))
  55. (custom-set-faces
  56. ;; custom-set-faces was added by Custom.
  57. ;; If you edit it by hand, you could mess it up, so be careful.
  58. ;; Your init file should contain only one such instance.
  59. ;; If there is more than one, they won't work right.
  60. )
  61. ;; My basic configuration Gerardo Marx 15/Jul/2020
  62. ;; Set default font:
  63. (add-to-list 'default-frame-alist
  64. '(font . "Source Code Pro-20"))
  65. ;; line numbers:
  66. ;;(when (version<= "26.0.50" emacs-version )
  67. ;; (global-display-line-numbers-mode))
  68. ;; toolbar
  69. (tool-bar-mode -1)
  70. ;; windmove:
  71. (windmove-default-keybindings 'meta)
  72. ;;-------
  73. ;;Python:
  74. (require 'virtualenvwrapper)
  75. (venv-initialize-interactive-shells) ;; if you want interactive shell support
  76. (venv-initialize-eshell) ;; if you want eshell support
  77. ;; note that setting `venv-location` is not necessary if you
  78. ;; use the default location (`~/.virtualenvs`), or if the
  79. ;; the environment variable `WORKON_HOME` points to the right place
  80. (setq venv-location "~/.virtualenvs")
  81. ;;---------