From b6b29cb5ea544b07f9a854b571b266a2707c6f7c Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Fri, 17 Jul 2020 11:18:34 -0500 Subject: [PATCH] starting again --- .emacs | 100 ++------------------------------------------------------- 1 file changed, 2 insertions(+), 98 deletions(-) diff --git a/.emacs b/.emacs index cabd884..84df328 100644 --- a/.emacs +++ b/.emacs @@ -1,101 +1,5 @@ - -;; 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) -;; Set up package.el to work with MELPA -(require 'package) -(add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) -(package-initialize) -;;(package-refresh-contents) -;;-------------- -;; Packages Gerardo Marx/Jul/2020: -;; Enable Evil -;; (require 'evil) -;; (evil-mode 1) -;; 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) -;; 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")) - TeX-source-correlate-start-server t) -;; Update PDF buffers after successful LaTeX runs -(add-hook 'TeX-after-compilation-finished-functions - #'TeX-revert-document-buffer) -;;-------------------- -(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-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-20")) -;; line numbers: -;;(when (version<= "26.0.50" emacs-version ) -;; (global-display-line-numbers-mode)) -;; toolbar -(tool-bar-mode -1) -;; windmove: -(windmove-default-keybindings 'meta) -;;------- -;;Python: -(require 'virtualenvwrapper) -(venv-initialize-interactive-shells) ;; if you want interactive shell support -(venv-initialize-eshell) ;; if you want eshell support -;; note that setting `venv-location` is not necessary if you -;; 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") + '(font . "Source Code Pro-20"))