Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

.sc -> python-mode

  • Loading branch information...
commit 1b061a82b278518454d25ad19f4f8e2dcbb6e73f 1 parent d367cb2
Doug MacEachern authored January 09, 2013

Showing 1 changed file with 9 additions and 5 deletions. Show diff stats Hide diff stats

  1. 14  dougm/init.el
14  dougm/init.el
@@ -12,17 +12,19 @@
12 12
 
13 13
 (global-set-key (kbd "C-x g") 'goto-line)
14 14
 
15  
-(add-hook 'c-mode-common-hook
16  
-          (lambda ()
17  
-            (setq c-basic-offset 4)
18  
-            (setq indent-tabs-mode nil)))
19  
-
20 15
 (require 'linum-off)
21 16
 (setq linum-format " %d ")
22 17
 
23 18
 (add-hook 'coding-hook 'linum-on)
24 19
 (add-hook 'coding-hook 'whitespace-mode)
25 20
 
  21
+(add-hook 'c-mode-common-hook
  22
+          (lambda ()
  23
+            (setq c-basic-offset 4)
  24
+            (setq indent-tabs-mode nil)))
  25
+
  26
+(add-hook 'c-mode-common-hook 'run-coding-hook)
  27
+
26 28
 (require 'go-mode)
27 29
 (add-hook 'before-save-hook #'gofmt-before-save)
28 30
 (add-hook 'go-mode-hook 'run-coding-hook)
@@ -35,6 +37,8 @@
35 37
 (require 'flymake)
36 38
 (require 'flymake-cursor)
37 39
 
  40
+(add-to-list 'auto-mode-alist '("\\.sc$" . python-mode))
  41
+
38 42
 (add-to-list 'load-path "~/gocode/src/github.com/dougm/goflymake")
39 43
 
40 44
 (require 'go-flymake)

0 notes on commit 1b061a8

Please sign in to comment.
Something went wrong with that request. Please try again.