From b781e73961005dca63c07d3760ea9dc33e28be24 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 27 Mar 2020 13:46:31 +0100 Subject: [PATCH] Emacs: Don't install cmake-mode if on Gentoo. --- init.d/programming/c++.el | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/init.d/programming/c++.el b/init.d/programming/c++.el index f28b051..cd55a8b 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-03-18T14:58:32+0100> +;; Time-stamp: <2020-03-27T13:46:19+0100> ;;; Commentary: @@ -81,15 +81,12 @@ (c-default-style "tastytea") ) -;; Highlighting and indentation for CMake. -(use-package cmake-mode - ;; The CMake ebuild installs and activates the mode. - :unless (string-match-p "gentoo" operating-system-release) - - :mode - ("CMakeLists\\.txt$" . cmake-mode) - ("\\.cmake$" . cmake-mode) - ) +;; Highlighting, indentation and documentation for CMake. +;; The CMake ebuild installs and activates the mode. +(unless (string-match-p "gentoo" operating-system-release) + (use-package cmake-mode + :mode (("CMakeLists\\.txt$" . cmake-mode) + ("\\.cmake$" . cmake-mode)))) ;; CMake reference. (use-package eldoc-cmake