Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add less, fix init.el

  • Loading branch information...
commit d5711cf283c40f7fa38e409f05abb3639f262aad 1 parent 8ab8806
@nofxx authored
Showing with 25 additions and 13 deletions.
  1. +25 −13 .emacs.d/init.el
View
38 .emacs.d/init.el
@@ -96,12 +96,13 @@
(require 'perspective) (persp-mode)
(require 'cheat)
-2;; nXhtml
+;; nXhtml
(load "nxhtml/autostart.el")
;; better html
(require 'haml-mode)
(require 'sass-mode)
+(require 'less-css-mode)
(add-to-list 'auto-mode-alist '("\\.haml$" . haml-mode))
;; PKGBUILD
@@ -216,6 +217,7 @@
(add-to-list 'auto-mode-alist '("Assetfile$" . ruby-mode))
(add-to-list 'auto-mode-alist '("Gemfile$" . ruby-mode))
(add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode))
+(add-to-list 'auto-mode-alist '("Guardfile$" . ruby-mode))
(add-to-list 'auto-mode-alist '("Vagrantfile$" . ruby-mode))
(eval-after-load 'ruby-mode
@@ -285,9 +287,9 @@
(defun untabify-buffer ()
- "Untabify current buffer"
- (interactive)
- (untabify (point-min) (point-max)))
+ "Untabify current buffer"
+ (interactive)
+ (untabify (point-min) (point-max)))
(defun progmodes-hooks ()
"Hooks for programming modes"
@@ -331,10 +333,10 @@
;; EMACS WRITES HERE
(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.
+ ;; 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.
'(auto-save-interval 9999)
'(auto-save-timeout 9999)
'(blink-cursor-mode nil)
@@ -346,6 +348,7 @@
'(inhibit-startup-screen t)
'(menu-bar-mode nil)
'(rails-indent-and-complete nil)
+ '(safe-local-variable-values (quote ((encoding . utf-8))))
'(save-abbrevs (quote silently))
'(scroll-bar-mode (quote right))
'(show-paren-mode t)
@@ -519,6 +522,7 @@
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
(global-set-key (kbd "\C-r") 'isearch-backward-regexp)
(global-set-key (kbd "C-M-s") 'isearch-forward)
+(global-set-key (kbd "C-M-t") 'textmate-goto-file)
(global-set-key "\C-l" 'goto-line)
@@ -542,6 +546,13 @@
(global-set-key [f11] 'delete-other-windows)
(global-set-key [f12] 'toggle-truncate-lines) ;; Add F12 to toggle line wrap
+;; Mouse Keys
+;;
+(global-set-key [mouse-10] 'magit-status)
+(global-set-key [mouse-9] 'magit-status)
+(global-set-key [mouse-8] 'magit-status)
+
+
;; Evil commands
(put 'erase-buffer 'disabled nil)
@@ -570,8 +581,9 @@
'(progn
(define-key mumamo-map (kbd "M-q") 'kill-this-buffer)
(define-key mumamo-map (kbd "M-a") 'magit-status)))
-
-
-
-
-
+(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.
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.