blob: c0f8aa5cdf12f2facf06e7839d93e205d76892d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
;;; c++.el -*- lexical-binding: t; -*-
;;;
;;; Author: Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; URL: https://git.sr.ht/~jakob/.emacs.d/
;;;
;;; Configuration of a development environment for the C++ programming language.
;;;
(use-package cc-mode
:straight nil
;; Even though the Linux kernel coding style [1] was written to address C, I
;; feel its viewpoints on indentation apply equally as well to C++.
;;
;; [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))
|
© 2015 - 2026 Jakob L. Kreuze