Permalink
Browse files

compile mode

  • Loading branch information...
1 parent 5748dd6 commit 60b97f1b1b68d7c63fae0ee077152b325cd313bc @dougm committed Feb 18, 2013
Showing with 8 additions and 1 deletion.
  1. +5 −0 custom.el
  2. +3 −1 custom/c.el
View
@@ -15,6 +15,9 @@
(setq ac-dictionary-files (list (concat user-emacs-directory ".dict")))
(ac-config-default)
+(require 'compile)
+(setq-default compilation-auto-jump-to-first-error t)
+
(require 'flymake)
(require 'flymake-cursor)
@@ -40,6 +43,8 @@
;; keys
(put 'downcase-region 'disabled nil)
+(global-set-key (kbd "C-u") 'scroll-down-command)
(global-set-key (kbd "C-x g") 'goto-line)
(global-set-key (kbd "C-x f") 'find-grep-dired)
(global-set-key (kbd "C-c w") 'delete-trailing-whitespace)
+(global-set-key (kbd "C-x C-k") 'compile)
View
@@ -27,7 +27,9 @@
(defun maybe-vmware-style ()
(when (and buffer-file-name
(string-match "bora" buffer-file-name))
- (c-set-style "vmware")))
+ (c-set-style "vmware")
+ (set (make-local-variable 'compile-command)
+ (concat "iscons " buffer-file-name))))
(add-hook 'c-mode-common-hook 'maybe-vmware-style)
(add-hook 'c-mode-common-hook 'esk-prog-mode-hook)

0 comments on commit 60b97f1

Please sign in to comment.