Skip to content

Commit

Permalink
compile mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Feb 18, 2013
1 parent 5748dd6 commit 60b97f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions custom.el
Expand Up @@ -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)

Expand All @@ -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)
4 changes: 3 additions & 1 deletion custom/c.el
Expand Up @@ -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)
Expand Down

0 comments on commit 60b97f1

Please sign in to comment.