-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs.el
50 lines (41 loc) · 1.46 KB
/
.emacs.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;; Bulit in mode turn on/off
(global-hl-line-mode)
(set-background-color "black")
(set-foreground-color "white")
(modify-frame-parameters nil '((alpha . 90)))
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(set-face-background 'mode-line "goldenrod")
(display-time)
(column-number-mode)
(linum-mode)
;; Self Quick Shortcuts
(global-set-key (kbd "C-x C-,")
(lambda ()
"Edit .emacs customized setting file"
(interactive)
(find-file "~/.emacs")))
;;Self playful stuff
(defun mark-comments ()
"Insert standard comment for ruby!"
(interactive)
(progn
(insert "#==================================================")
(insert "# Ver Date Hist ")
(insert "#===================================================")))
(global-set-key (kbd "C-c C-g") 'mark-comments)
;; For loading inf-ruby extension
;; curl -O https://raw.github.com/nonsequitur/inf-ruby/master/inf-ruby.el
(load-file "~/.emacs.d/inf-ruby.el")
(autoload 'inf-ruby "inf-ruby" "Run an inferior Ruby process" t)
(autoload 'inf-ruby-setup-keybindings "inf-ruby" "" t)
(eval-after-load 'ruby-mode
'(add-hook 'ruby-mode-hook 'inf-ruby-setup-keybindings))
;; For loading yaml-mode.el
;; curl -O https://raw.github.com/yoshiki/yaml-mode/master/yaml-mode.el
(load-file "~/.emacs.d/yaml-mode.el")
(require 'yaml-mode)
;; Customize auto list session
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-to-list 'auto-mode-alist '("Gemfile" . ruby-mode))