This commit is contained in:
Henrik Lissner 2015-02-01 04:26:02 -05:00
parent 99d5de31a7
commit 0939cfd690
6 changed files with 10 additions and 18 deletions

View file

@ -207,7 +207,6 @@
file-name))
(progn ; ex-commands
(evil-ex-define-cmd "echo" 'my:echo)
(evil-ex-define-cmd "cycle" 'cycle-font)
(evil-ex-define-cmd "togglet[heme]" 'toggle-theme)
(evil-ex-define-cmd "full[scr]" 'toggle-frame-fullscreen)
@ -228,10 +227,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(evil-define-command my:echo (&optional output)
(interactive "<a>")
(message "%s" output))
(evil-define-command my:kill-buffers (&optional bang)
:repeat nil
(interactive "<!>")

View file

@ -13,7 +13,7 @@
;;;; GUI Settings ;;;;;;;;;;;;;;;;;;;;;;
(tooltip-mode -1)
(blink-cursor-mode 1) ; blink cursor
(global-hl-line-mode 1) ; highlight line
;; (global-hl-line-mode 1) ; highlight line
(setq linum-format " %3d")

View file

@ -4,7 +4,6 @@
(progn
;; Syntax coloring breaks on consecutive loads for some reason. This fixes that:
(add-hook 'scss-mode-hook 'css-mode)
(add-hook 'scss-mode-hook 'enable-tab-width-2)
(setq-default css-indent-offset 2)

View file

@ -6,8 +6,8 @@
(my--cleanup-buffers-add "^\\*Shell Command Output\\*$")
(my--cleanup-buffers-add "^\\*Async Shell Command\\*$")
;; Make shell scrips executable on save. Good!
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
;; Make shell scrips executable on save?
;; (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
;; Color in *Shell Command Output*
(require 'ansi-color)

View file

@ -23,7 +23,7 @@
web-mode-block-padding 2)
(after "web-beautify"
(add-hook! 'web-mode-hook (setenv "jsbeautify_indent_size" "4"))
(add-hook! 'web-mode-hook (setenv "jsbeautify_indent_size" "4"))
(bind 'motion web-mode-map "gQ" 'web-beautify-html))
(bind web-mode-map (kbd "s-/") 'web-mode-comment-or-uncomment)

View file

@ -46,13 +46,11 @@
(bind 'insert lisp-mode-map [remap my.dumb-indent] 'indent-for-tab-command)
(bind 'insert emacs-lisp-mode-map [remap my.dumb-indent] 'indent-for-tab-command)
;; Highjacks backspace and space to:
;; a) expand spaces between delimiters intelligently: (|) -> ( | )
;; b) the reverse of A: ( | ) -> (|)
;; c) allow backspace to delete indented blocks intelligently
;; d) and not do any of this magic when inside a string
;; Highjacks backspace to:
;; a) deletes spaces on either side of the cursor, if present ( | ) -> (|)
;; b) allow backspace to delete space-indented blocks intelligently
;; c) and not do any of this magic when inside a string
(bind 'insert
(kbd "SPC") 'my.inflate-space-maybe
[remap backward-delete-char-untabify] 'my.deflate-space-maybe
[remap newline] 'my.newline-and-indent
@ -64,8 +62,9 @@
"\C-u" 'my.backward-kill-to-bol-and-indent
;; Fixes delete
(kbd "<kp-delete>") 'delete-char
(kbd "<kp-delete>") 'delete-char)
(bind '(insert normal)
;; Textmate-esque insert-line before/after
(kbd "<s-return>") 'evil-open-below
(kbd "<S-s-return>") 'evil-open-above)
@ -100,7 +99,6 @@
"\C-w" 'evil-delete-backward-word)
(bind minibuffer-local-map
"\C-u" 'evil-delete-whole-line)
;; Close help/compilation windows with escape
;; Redefine to get rid of that silly delete-other-windows nonsense
(defun keyboard-escape-quit ()