Last active
August 29, 2015 14:02
-
-
Save cyanboy/d0ffaf14aa38704504c1 to your computer and use it in GitHub Desktop.
cyanboy/.emacs
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
(require 'package) | |
(prefer-coding-system 'utf-8) | |
;;Mirross | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
(package-initialize) | |
;;Disable splash screen | |
(setq inhibit-splash-screen t) | |
(column-number-mode 1) | |
(delete-selection-mode 1) ;; | |
(blink-cursor-mode 0) ;;No blinking cursor | |
(menu-bar-mode 0) ;;disable menu-bar | |
(tool-bar-mode 0) ;;disable tool-bar | |
(scroll-bar-mode 0) ;;disable scroll-bar | |
(setq ring-bell-function 'ignore) ;; STOP THE BELL | |
(global-set-key (kbd "C-x k") 'kill-this-buffer) ;; KILL KILL, NOW | |
(fset 'yes-or-no-p 'y-or-n-p) | |
(setq c-default-style "k&r" | |
c-basic-offset 4) | |
(setq mac-option-modifier nil) | |
(setq mac-command-modifier 'meta) | |
(show-paren-mode) | |
(setq backup-directory-alist `((".*" . ,temporary-file-directory))) | |
(setq auto-save-file-name-transforms `((".*" | |
,temporary-file-directory t))) | |
(defun tidy () | |
"Ident, untabify and unwhitespacify current buffer, or region if active." | |
(interactive) | |
(let ((beg (if (region-active-p) (region-beginning) (point-min))) | |
(end (if (region-active-p) (region-end) (point-max)))) | |
(indent-region beg end) | |
(whitespace-cleanup) | |
(untabify beg (if (< end (point-max)) end (point-max))))) | |
(global-set-key (kbd "<C-tab>") 'tidy) | |
(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-enabled-themes (quote (wombat)))) | |
(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