Skip to content

Commit

Permalink
Merge pull request #12 from ZachGoldberg/master
Browse files Browse the repository at this point in the history
Basis for iteration on the best emacs rc ever
  • Loading branch information
CptnBrittish committed Apr 9, 2015
2 parents 64e9b1a + 5864825 commit e473bbc
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions best_emacs_rc_ever/.emacs
@@ -0,0 +1,60 @@
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pyboth" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))

(add-hook 'find-file-hook 'flymake-find-file-hook)

(add-hook 'before-save-hook 'delete-trailing-whitespace)

(defun flymake-display-warning (warning)
"Display a warning to the user, using minibuffer"
(message warning))

(require 'color-theme)
(color-theme-initialize)
(color-theme-billw)

(column-number-mode)

(setq-default indent-tabs-mode nil);
(setq tab-width 4);
(customize-variable (quote tab-stop-list))


(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.
'(menu-bar-mode nil nil (menu-bar))
'(safe-local-variable-values (quote ((encoding . utf-8))))
'(tool-bar-mode nil nil (tool-bar)))

(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.
)

(setq-default tab-width 4) (setq-default indent-tabs-mode nil)

(desktop-save-mode 1)
(put 'scroll-left 'disabled nil)
(delete-selection-mode 1)
(auto-fill-mode -1)
(remove-hook 'text-mode-hook #'turn-on-auto-fill)

;;Ido
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t) ;; enable fuzzy matching
;; idomenu
(autoload 'idomenu "idomenu" nil t)

0 comments on commit e473bbc

Please sign in to comment.