Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Created December 29, 2014 11:28
Show Gist options
  • Save phcostabh/3699a734a67621ede19f to your computer and use it in GitHub Desktop.
Save phcostabh/3699a734a67621ede19f to your computer and use it in GitHub Desktop.
;;; Load color theme
(require-package 'ujelly-theme)
(load-theme 'ujelly t)
(require 'init-php-mode)
(require 'key-chord)
(key-chord-mode 1)
(key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
;;; Enter comand mode when typing ";"
(define-key evil-normal-state-map (kbd ";") 'evil-ex)
;;; Remove background color when in terminal.
(defun on-after-init ()
(unless (display-graphic-p (selected-frame))
(set-face-background 'default "unspecified-bg" (selected-frame))))
(add-hook 'window-setup-hook 'on-after-init)
;;; Remember the cursor position of files when reopening them
(setq save-place-file "~/.emacs.d/saveplace")
(setq-default save-place t)
(require 'saveplace)
;;; Select last yanked text
(evil-leader/set-key "V" 'exchange-point-and-mark)
(provide 'init-local-config)
;;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment