Skip to content

Instantly share code, notes, and snippets.

@tavoaqp-zz
Created October 26, 2018 15:03
Show Gist options
  • Save tavoaqp-zz/2d079d0b84057fef661aac7044ad59be to your computer and use it in GitHub Desktop.
Save tavoaqp-zz/2d079d0b84057fef661aac7044ad59be to your computer and use it in GitHub Desktop.
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
(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.
'(package-selected-packages
'(helm-mt jenkins butler imenu-anywhere smartscan buffer-flip emr markdown-mode helm-codesearch helm-ag helm-projectile jedi indent-tools elpy ein go-mode pomidor academic-phrases projectile-speedbar multi-term ng2-mode angular-mode ac-html-angular handoff golden-ratio go grizzl magit-gitflow magit dockerfile-mode docker-compose-mode docker auctex ag ensime scala-mode projectile sourcerer-theme)))
(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.
)
(load-theme 'melancholy t)
(add-to-list 'load-path "/home/gtorres/git/ESS/lisp")
(load "ess-site")
(setq-default left-margin-width 5 right-margin-width 5)
(projectile-global-mode)
(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)
(setq projectile-completion-system 'grizzl)
(require 'multi-term)
(setq multi-term-program "/bin/bash")
;;(require 'projectile-speedbar)
(require 'pomidor)
(require 'helm-projectile)
(helm-projectile-on)
(autoload 'ctags-update "ctags-update" "update TAGS using ctags" t)
(global-set-key "\C-cE" 'ctags-update)
(eval-when-compile
(require 'use-package))
(use-package use-package-chords
:config (key-chord-mode 1))
(use-package buffer-flip
:ensure t
:chords ((";." . buffer-flip))
:bind (:map buffer-flip-map
( "." . buffer-flip-forward)
( "*" . buffer-flip-backward)
( "C-g" . buffer-flip-abort)))
(global-set-key (kbd "M-i") #'helm-imenu-anywhere)
(require 'multi-term)
(setq multi-term-program "/bin/bash")
(require 'helm-mt)
(global-set-key (kbd "C-x t") 'helm-mt)
(helm-mt/reroute-terminal-functions t)
(menu-bar-mode -1)
(tool-bar-mode -1)
(global-set-key (kbd "C-x g") 'magit-status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment