Created
February 5, 2018 08:42
-
-
Save andrewdyates/e81908eb526ee30ee1eeb26f5007610f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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. | |
(require 'package) | |
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
(not (gnutls-available-p)))) | |
(url (concat (if no-ssl "http" "https") "://melpa.org/packages/"))) | |
(add-to-list 'package-archives (cons "melpa" url) t)) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib | |
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) | |
(package-initialize) | |
;(setq insert-directory-program "gls") | |
;(setq dired-listing-switches "-aBhl --group-directories-first") | |
(setq backup-inhibited t) ;; disable backup | |
(setq auto-save-default nil) ;; disable auto save | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(setq inhibit-startup-screen t) | |
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t) | |
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) | |
(require 'exec-path-from-shell) | |
(exec-path-from-shell-initialize) | |
(define-key global-map (kbd "C-j") 'newline-and-indent) | |
(add-hook 'python-mode-hook (lambda () (electric-indent-local-mode -1))) | |
(add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode)) | |
(add-to-list 'auto-mode-alist '("\\.pbtxt\\'" . protobuf-mode)) | |
(defun tt () | |
(interactive) | |
(term "/bin/bash") | |
(term-line-mode) | |
) | |
;; potentially improve screen tearing | |
(setq redisplay-dont-pause t) | |
;; increase terminal lines from 2048 almost 10k. set to 0 for unlimited. | |
(setq term-buffer-maximum-size 8192) | |
(load-theme 'darkburn t) | |
(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-safe-themes | |
(quote | |
("47744f6c8133824bdd104acc4280dbed4b34b85faa05ac2600f716b0226fb3f6" default))) | |
'(package-selected-packages (quote (darkburn-theme protobuf-mode exec-path-from-shell)))) | |
(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. | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment