From d59405b282f872c515cb09c6dc2d71e97a1a8f03 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 23 Jul 2019 00:30:45 +0200 Subject: [PATCH] Minor comment revision & refactors --- core/core-ui.el | 2 ++ early-init.el | 2 +- init.example.el | 2 +- modules/lang/elixir/config.el | 15 +++++++-------- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 02385d411..d69fd1f06 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -291,6 +291,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original ;; new one ns-pop-up-frames nil) + ;; Sets ns-transparent-titlebar and ns-appearance frame parameters as is + ;; appropriate for the loaded theme. (and (or (daemonp) (display-graphic-p)) (require 'ns-auto-titlebar nil t)) diff --git a/early-init.el b/early-init.el index aa069f2a5..a4b3682b8 100644 --- a/early-init.el +++ b/early-init.el @@ -11,7 +11,7 @@ ;; we must prevent Emacs from doing it early! (setq package-enable-at-startup nil) -;; Prevent the glimpse of un-styled Emacs by disable these UI elements early. +;; Prevent the glimpse of un-styled Emacs by disabling these UI elements early. (push '(menu-bar-lines . 0) default-frame-alist) (push '(tool-bar-lines . 0) default-frame-alist) (push '(vertical-scroll-bars) default-frame-alist) diff --git a/init.example.el b/init.example.el index 01815d9a1..01b7e30e1 100644 --- a/init.example.el +++ b/init.example.el @@ -24,7 +24,7 @@ doom-dashboard ; a nifty splash screen for Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs ;;fill-column ; a `fill-column' indicator - hl-todo ; highlight TODO/FIXME/NOTE tags + hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra ;;indent-guides ; highlighted indent columns modeline ; snazzy, Atom-inspired modeline, plus API diff --git a/modules/lang/elixir/config.el b/modules/lang/elixir/config.el index 71c4973e0..baed11790 100644 --- a/modules/lang/elixir/config.el +++ b/modules/lang/elixir/config.el @@ -21,14 +21,13 @@ :return "return" :yield "use") ;; ...and only complete the basics - (after! smartparens - (sp-with-modes 'elixir-mode - (sp-local-pair "do" "end" - :when '(("RET" "")) - :unless '(sp-in-comment-p sp-in-string-p) - :post-handlers '("||\n[i]")) - (sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p)) - (sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p)))) + (sp-with-modes 'elixir-mode + (sp-local-pair "do" "end" + :when '(("RET" "")) + :unless '(sp-in-comment-p sp-in-string-p) + :post-handlers '("||\n[i]")) + (sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p)) + (sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p))) (def-package! alchemist-company :when (featurep! :completion company)