Created
June 5, 2015 19:15
-
-
Save stankud/45528344190687d62e0a 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
;;; change back-up folder directory | |
;;; (setq backup-directory-alist '(("." . "~/.emacsBackups"))) | |
;;; no backup files | |
(setq make-backup-files nil) | |
;;; use js-mode for .js/json files | |
(add-to-list 'auto-mode-alist '("\\.json$" . js-mode)) | |
;;; bind meta key to option | |
(setq mac-option-key-is-meta t) | |
;;; switch C-h with C-x ? so that C-h is Backspace and C-x ? is help | |
(global-set-key [?\C-h] 'delete-backward-char) | |
(global-set-key [?\C-x \?] 'help-command) | |
;;; add line numbers | |
(global-linum-mode t) | |
;;; color | |
(setq linum-format "%4d|") | |
(setq mode-line-format | |
(list | |
;; value of `mode-name' | |
"%m: " | |
;; value of current buffer name | |
"buffer %b, " | |
;; value of current line number | |
"line %l " | |
"-- user: " | |
;; value of user | |
(getenv "USER"))) | |
(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. | |
'(default ((t (:background "color-234")))) | |
'(cursor ((t (:foreground "pink")))) | |
'(linum ((t (:background "color-237" :foreground "yellow"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment