Procházet zdrojové kódy

Add C compiling key binding

master
ßingen před 8 roky
rodič
revize
6a2e42771b
1 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. +10
    -1
      lisp/init-c.el

+ 10
- 1
lisp/init-c.el Zobrazit soubor

;https://www.emacswiki.org/emacs/IndentingC
;;; package --- C mode
;;; Commentary:
;;; Code:
;;https://www.emacswiki.org/emacs/IndentingC
;;(require-package 'guess-offset) ;;(require-package 'guess-offset)
;; (setq c-default-style "linux" ;; (setq c-default-style "linux"
;; c-basic-offset 4 ;; c-basic-offset 4
tab-width 8 tab-width 8
indent-tabs-mode nil))) 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) (provide 'init-c)

Načítá se…
Zrušit
Uložit