Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stankud
Created June 5, 2015 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stankud/45528344190687d62e0a to your computer and use it in GitHub Desktop.
Save stankud/45528344190687d62e0a to your computer and use it in GitHub Desktop.
;;; 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