Commits

Kota UENISHI committed c0d36e0 Merge

merge

Comments (0)

Files changed (2)

snippets/dot.bashrc

+export LD_LIBRARY_PATH=/usr/local/lib
+export PS1="\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]$\[\033[00m\] "

snippets/dot.emacs

 ;(require 'navi2ch)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; append-tuareg.el - Tuareg quick installation: Append this file to .emacs.
-
-(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
-(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
-(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
+; append-tuareg.el - Tuareg quick installation: Append this file to .emacs.
+;(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
+;(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
+;(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
 
 (if (and (boundp 'window-system) window-system)
     (when (string-match "XEmacs" emacs-version)
             (require 'sym-lock))
        	(require 'font-lock)))
 
-; clojure-mode
-(add-to-list 'load-path "/usr/local/src/clojure-mode")
-(require 'clojure-mode)
+;; clojure-mode
+;(add-to-list 'load-path "/usr/local/src/clojure-mode")
+;(require 'clojure-mode)
+;; slime
+;(eval-after-load "slime" '(progn (slime-setup '(slime-repl))))
+;
+;(add-to-list 'load-path "/usr/local/src/slime")
+;(require 'slime)
+;(slime-setup)
 
-;; slime
-(eval-after-load "slime" '(progn (slime-setup '(slime-repl))))
 
-(add-to-list 'load-path "/usr/local/src/slime")
-(require 'slime)
-(slime-setup)
+(require 'flymake)
+
+(defun flymake-cc-init ()
+  (let* ((temp-file   (flymake-init-create-temp-buffer-copy
+                       'flymake-create-temp-inplace))
+         (local-file  (file-relative-name
+                       temp-file
+                       (file-name-directory buffer-file-name))))
+    (list "g++" (list "-Wall" "-Wextra" "-fsyntax-only" local-file))))
+
+(push '("\\.cpp$" flymake-cc-init) flymake-allowed-file-name-masks)
+
+(add-hook 'c++-mode-hook
+          '(lambda ()
+             (flymake-mode t)))