浏览代码

Add C compiling key binding

master
ßingen 8 年前
父节点
当前提交
6a2e42771b
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. +10
    -1
      lisp/init-c.el

+ 10
- 1
lisp/init-c.el 查看文件

@@ -1,4 +1,7 @@
;https://www.emacswiki.org/emacs/IndentingC
;;; package --- C mode
;;; Commentary:
;;; Code:
;;https://www.emacswiki.org/emacs/IndentingC
;;(require-package 'guess-offset)
;; (setq c-default-style "linux"
;; c-basic-offset 4
@@ -35,4 +38,10 @@
tab-width 8
indent-tabs-mode nil)))

;; Compile key binding
;; http://tuhdo.github.io/c-ide.html#orgheadline57
(global-set-key (kbd "<f5>") (lambda ()
(interactive)
(setq-local compilation-read-command nil)
(call-interactively 'compile)))
(provide 'init-c)

正在加载...
取消
保存