From 0244474e9fb6a49ec2d3d555e15e644f12479388 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 4 Sep 2018 15:01:07 -0400 Subject: Debug startup, support LSP, update KBDs Debug startup: - some packages were missing explicit use-package calls, which made this configuration incompatible with fresh computers. After crashing my MBP and trying to get this working thereafter, I learned. Support LSP: - LSP support for Haskell is good; embrace and prefer over Intero Update KBDs: - preferences change - changing to a light theme (for now) --- emacs.d/wpc/string-functions.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'emacs.d/wpc/string-functions.el') diff --git a/emacs.d/wpc/string-functions.el b/emacs.d/wpc/string-functions.el index 91b46b5b409e..a7c4a39c6343 100644 --- a/emacs.d/wpc/string-functions.el +++ b/emacs.d/wpc/string-functions.el @@ -14,6 +14,16 @@ "Append \"-hook\" to X." (s-append "-hook" x)) +(defun symbol->string (symbol) + "Alias for `symbol-name' with SYMBOL, since I can never remember that +function's name." + (symbol-name symbol)) + +(defun string->symbol (string) + "Alias for `intern' for STRING since I can never remember that function's + name." + (intern string)) + (defun string/ensure-hookified (x) "Ensure that X has \"-hook\" appended to it." (if (s-ends-with? "-hook" x) -- cgit 1.4.1