summaryrefslogtreecommitdiff
path: root/lisp/init-external.el
blob: a7dfc1e1b9f0dc86dc8721f2810bb0a6657c8236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(define-prefix-command 'external-map)
(global-set-key (kbd "C-c x") 'external-map)

(defvar km/terminal "urxvt")

(defun km/open-external-terminal ()
  (interactive)
  (start-process "ext-term" nil km/terminal))

(define-key external-map "t" 'km/open-external-terminal)
(define-key external-map "s" 'shell-command)

(global-set-key (kbd "C-c c") 'compile)

(defadvice recompile (around restore-windows activate)
  "Prevent recompiling from spawning new windows."
  (save-window-excursion
    ad-do-it))

(global-set-key (kbd "C-c g") 'recompile)

(provide 'init-external)