Skip to content

Instantly share code, notes, and snippets.

@ilyash
Created October 19, 2014 07:17
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 ilyash/00d79ba9f62862c39eaa to your computer and use it in GitHub Desktop.
Save ilyash/00d79ba9f62862c39eaa to your computer and use it in GitHub Desktop.
; Keys
(global-set-key [M-left] 'windmove-left)
(global-set-key [M-right] 'windmove-right)
(global-set-key [M-up] 'windmove-up)
(global-set-key [M-down] 'windmove-down)
(global-set-key [f2] 'save-buffer)
; Settings
(global-hi-lock-mode 1)
(ido-mode 1)
(tool-bar-mode 0)
(show-paren-mode)
(which-func-mode)
(electric-indent-mode)
; Time and load
(setq display-time-mail-file "/NONE")
(display-time-mode)
; Settings - JavaScript
(add-hook 'js-mode-hook
(lambda ()
(setq js-indent-level 2)))
; Settings - terminal
(if (not (display-graphic-p)) (menu-bar-mode 0))
; Settings - desktop (session)
(setq desktop-path '("./"))
(desktop-save-mode 1)
; Settings - abbrevs
(setq save-abbrevs t)
; Dockerfile
(add-to-list 'load-path "~/.EMACS/dockerfile-mode")
(require 'dockerfile-mode)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))
; Auto
(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.
'(desktop-path (quote ("./" "~")))
'(desktop-save-mode t)
'(indicate-empty-lines t)
'(mouse-yank-at-point t)
'(session-use-package t nil (session)))
(put 'narrow-to-region 'disabled nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment