From 1d9ae834f24262f035bb019954dd56734f307877 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 4 Jun 2018 21:13:19 +0200 Subject: [PATCH] Minor refactors & docstring revision These are not the refactors you are looking for. --- core/core.el | 4 ++-- modules/feature/snippets/config.el | 4 ++-- modules/lang/cc/config.el | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core.el b/core/core.el index 57b48793e..f55ac5bbd 100644 --- a/core/core.el +++ b/core/core.el @@ -1,8 +1,8 @@ ;;; core.el --- the heart of the beast -*- lexical-binding: t; -*- (eval-when-compile - (when (version< emacs-version "25") - (error "Doom only supports Emacs 25.1 and higher!"))) + (and (version< emacs-version "25") + (error "Doom only supports Emacs 25.1 and higher!"))) ;; (defvar doom-version "2.0.9" diff --git a/modules/feature/snippets/config.el b/modules/feature/snippets/config.el index 33757e31e..e31f33124 100644 --- a/modules/feature/snippets/config.el +++ b/modules/feature/snippets/config.el @@ -50,5 +50,5 @@ (advice-add #'yas-expand :before #'sp-remove-active-pair-overlay))) -(after! auto-yasnippet - (setq aya-persist-snippets-dir (concat doom-local-dir "auto-snippets/"))) +;; `auto-yasnippet' +(setq aya-persist-snippets-dir (concat doom-local-dir "auto-snippets/")) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 16389c367..c88ba638a 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -87,8 +87,9 @@ compilation database is present in the project.") (substatement-label . 0) (statement-cont . +) (case-label . +) - ;; align args with open brace OR don't indent at all (if open brace - ;; is at eolp and close brace is after arg with no trailing comma) + ;; align args with open brace OR don't indent at all (if open + ;; brace is at eolp and close brace is after arg with no trailing + ;; comma) (arglist-intro . +) (arglist-close +cc-lineup-arglist-close 0) ;; don't over-indent lambda blocks