Skip to content

Instantly share code, notes, and snippets.

@vishusingh
Created June 10, 2016 17:44
Show Gist options
  • Save vishusingh/0f867ca008cf5c11518cb91cf57f23b0 to your computer and use it in GitHub Desktop.
Save vishusingh/0f867ca008cf5c11518cb91cf57f23b0 to your computer and use it in GitHub Desktop.
(package-initialize)
(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.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
'(blink-cursor-mode nil)
'(custom-enabled-themes (quote (deeper-blue)))
'(ido-everywhere t)
'(ido-mode (quote both) nil (ido))
'(menu-bar-mode nil)
'(package-archives
(quote
(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://stable.melpa.org/packages/"))))
'(paradox-github-token t)
'(tool-bar-mode nil))
(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 (:inherit nil :stipple nil :background "#181a26" :foreground "gray80" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "nil" :family "Menlo")))))
;; old M-x.
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
;; projectile
(require 'projectile)
(projectile-mode)
(global-set-key (kbd "s-t") 'projectile-find-file)
;; comment / uncomment method
(defun toggle-comment-on-line ()
"comment or uncomment current line"
(interactive)
(comment-or-uncomment-region (line-beginning-position) (line-end-position)))
(global-set-key (kbd "s-/") 'toggle-comment-on-line)
;; Emmet initialization
(require 'emmet-mode)
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation.
(global-set-key (kbd "TAB") 'emmet-expand-line)
;; Switching windows with shift+arrow
(when (fboundp 'windmove-default-keybindings)
(windmove-default-keybindings))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment