Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added cpp help

  • Loading branch information...
commit bad7aa91ee126be483f0c1caa44452d8a6e33c24 1 parent 606fa9e
Brady Love authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  init.d/10_packages.el
  2. +6 −0 init.d/cpp.el
2  init.d/10_packages.el
View
@@ -34,8 +34,8 @@
rspec-mode
magit
perspective
- slime
fill-column-indicator
+ cppcheck
color-theme
color-theme-sanityinc-tomorrow
color-theme-sanityinc-solarized
6 init.d/cpp.el
View
@@ -0,0 +1,6 @@
+;; Compile the active buffer using clang and C++11 standard
+(defun compile-current-file ()
+ "Compiles the currently active file"
+ (interactive)
+ (setq compile-command (format "%s %s" "clang++ -std=c++11 -stdlib=libc++" (buffer-name)))
+ (compile compile-command))
Please sign in to comment.
Something went wrong with that request. Please try again.