Roma Sokolov avatar Roma Sokolov committed b9b7220

diff stuff

Comments (0)

Files changed (6)

.emacs.d/load/elpackages_init.el

 ;; list of el-get packages
-
 (el-get-add
  (:name package))
 
 (el-get-add
  (:name clojure-mode))
 
+(el-get-add
+ (:name paredit
+  :after (progn ()
+                (add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
+                (add-hook 'lisp-interaction-mode-hook 'enable-paredit-mode)
+                (add-hook 'lisp-mode-hook 'enable-paredit-mode)
+                (add-hook 'ielm-mode-hook 'enable-paredit-mode))))
+
+(el-get-add
+ (:name slime))
 
 (setq el-get-sources (reverse el-get-sources))
 

.emacs.d/load/keys_init.el

 (global-set-key (kbd "C-c C-y") 'uncomment-region)
 
 ;; misc
+(global-set-key (kbd "C-c \"") 'insert-quotes)

.emacs.d/load/modes_init.el

         '("\\.sql\\'" . sql-mode)
         '("\\.plsql\\'" . sql-mode)
         '("\\.nu\\'" . lisp-mode)
+        '("\\.podsl\\'" . lisp-mode)
         '("\\.m\\'" . objc-mode)
         )
         auto-mode-alist))
 
 (eval-after-load "python"
   '(progn
-     (define-key python-mode-map (kbd "RET") 'newline-maybe-indent)))
+     (define-key python-mode-map (kbd "RET") 'newline-maybe-indent)
+     (subword-mode)))
 
 ;; Ruby
 
             (setq comment-start "/*")
             (setq comment-end "*/")
             (subword-mode)
+            (setq tab-width 8)
+            (setq c-basic-offset 8)
+            (c-set-offset 'substatement-open 0)
 ))
 
 
 
 (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
 
-(enclose-global-mode t)
+;; (enclose-global-mode t)
 
 (defconst highlight-symbol-border-pattern
   (if (>= emacs-major-version 22) '("\\_<" . "\\_>") '("\\<" . "\\>")))
     (insert "\"")
     (goto-char (+ end 1))
     (insert "\"")))
+
+;; paredit
+
+(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
+(add-hook 'lisp-interaction-mode-hook 'enable-paredit-mode)
+(add-hook 'lisp-mode-hook 'enable-paredit-mode)
+(add-hook 'ielm-mode-hook 'enable-paredit-mode)
+(add-hook 'clojure-mode-hook 'enable-paredit-mode)
+(add-hook 'slime-repl-mode-hook 'enable-paredit-mode)
     prune-all = !git remote | xargs -n 1 git remote prune
     edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; $EDITOR `f`"
     add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
+    subump = submodule update --recursive --init
 .m2
 .dialyzer_plt
 .lein
+Robrary
+code
+.emacs.d/swank/
 
 bin/opam
 bin/opam-mk-repo
 
 function genint() { ocamlc -i "$1" > "$1i" }
 
+function ghcl () {
+    git clone "git://github.com/$1.git"
+}
+
 # local specific aliases and settings
 # local settings can override some settings
 if [ -f ~/.zshlocal ]; then
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.