From 5a7baa82c79220bca36f085bbdc8286c2660a6c9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 3 Aug 2020 00:39:56 +0200 Subject: [PATCH] Emacs: Fix flycheck warnings in programming/c++. --- init.d/programming/c++.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/programming/c++.el b/init.d/programming/c++.el index 0905529..df7f89c 100644 --- a/init.d/programming/c++.el +++ b/init.d/programming/c++.el @@ -1,6 +1,6 @@ ;;; c++.el --- C++ settings. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-06-23T02:30:23+0200> +;; Time-stamp: <2020-08-03T00:39:43+0200> ;;; Commentary: @@ -17,6 +17,7 @@ (use-package flycheck-clang-tidy :after (flycheck projectile lsp-ui) :defines (lsp-mode) + :functions (flycheck-clang-tidy-setup) :config (progn (defun my/clang-tidy-off () "Disable c/c++-clang-tidy." @@ -117,6 +118,7 @@ (when (executable-find "clang-format") (use-package clang-format + :commands (clang-format-buffer) :hook ((c-mode-common . (lambda () (add-hook 'before-save-hook #'clang-format-buffer nil t))))))