From 50e1f5bb494528912839018464c4e445a09344d4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 30 Oct 2020 16:41:47 +0100 Subject: [PATCH] Emacs: Load clang-format when my/clang-format-buffer-maybe is called. --- init.d/programming/c++.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/programming/c++.el b/init.d/programming/c++.el index 2f0d894..249dad1 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-10-27T09:46:38+0100> +;; Time-stamp: <2020-10-30T16:40:55+0100> ;;; Commentary: @@ -118,7 +118,7 @@ (when (executable-find "clang-format") (use-package clang-format - :commands (clang-format-buffer) + :commands (clang-format-buffer my/clang-format-buffer-maybe) :config (defun my/clang-format-buffer-maybe () "Run `clang-format-buffer' if `my/reformat-save' is t." (when my/reformat-save