diff --git a/.emacs b/.emacs index 9a9afe0..cabd884 100644 --- a/.emacs +++ b/.emacs @@ -13,8 +13,8 @@ ;;-------------- ;; Packages Gerardo Marx/Jul/2020: ;; Enable Evil -(require 'evil) -(evil-mode 1) +;; (require 'evil) +;; (evil-mode 1) ;; Projectile configuration: (projectile-mode +1) (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map) @@ -28,8 +28,13 @@ (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) +;; auto-complete +(ac-config-default) ;; pdlatex: (setq latex-run-command "pdflatex") +(setenv "PATH" (concat "/Library/TeX/texbin" (getenv "PATH"))) +(setq exec-path (append '("/Library/TeX/texbin") exec-path)) +;; ------ (setq-default TeX-master nil) ;; Use pdf-tools to open PDF files (setq TeX-view-program-selection '((output-pdf "PDF Tools")) @@ -43,16 +48,7 @@ ;; 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 (misterioso))) - '(package-selected-packages (quote (virtualenvwrapper helm projectile use-package))) - '(safe-local-variable-values - (quote - ((pyvenv-workon . keesman_env) - (org-edit-src-content . 0) - (org-src-preserve-indentation . t) - (TeX-master . "../theLatexBookSci.tex") - (TeX-master . t)))) - '(tool-bar-mode nil)) + ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -79,4 +75,27 @@ ;; use the default location (`~/.virtualenvs`), or if the ;; the environment variable `WORKON_HOME` points to the right place (setq venv-location "~/.virtualenvs") +;; jedi python autocompletition for emacs: +(add-hook 'python-mode-hook 'jedi:setup) +(setq jedi:complete-on-dot t) ; optional + ;;--------- +;; magit: +(global-set-key (kbd "C-x g") 'magit-status) +;; theme changer: +;; (setq calendar-location-name "Mexico, MX") +;; (setq calendar-latitude 23.63) +;; (setq calendar-longitude 102.55) +;; (require 'theme-changer) +;; (change-theme 'tango 'misterioso) +;; ----------------- +;; org agenda and capture +(global-set-key (kbd "C-c l") 'org-store-link) +(global-set-key (kbd "C-c a") 'org-agenda) +(global-set-key (kbd "C-c c") 'org-capture) +(org-babel-do-load-languages + 'org-babel-load-languages + '((python . t))) + +;; ispell +(setq ispell-program-name "/usr/local/bin/aspell")