;;; c.el -*- lexical-binding: t; -*- ;;; ;;; Author: Jakob L. Kreuze ;;; URL: https://git.sr.ht/~jakob/.emacs.d/ ;;; ;;; Configuration of a development environment for the C programming language. ;;; (use-package cc-mode :straight nil ;; Generally, I adhere to the Linux kernel coding style [1]. ;; ;; [1]: https://www.kernel.org/doc/html/v4.10/process/coding-style.html :hook (c-mode . (lambda () (setq indent-tabs-mode t) (c-set-style "linux"))) ;; Enable company, Flycheck, and ElDoc, integration for all of which is ;; provided by `irony-mode'. :hook (c-mode . eglot-ensure) (c-mode . company-mode))