about summary refs log tree commit diff
path: root/emacs.d/wpc/string-functions.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-09-04T19·01-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-09-04T19·01-0400
commit0244474e9fb6a49ec2d3d555e15e644f12479388 (patch)
tree118c3dfea9dbbb172eadf938a3c42d5019dd9d17 /emacs.d/wpc/string-functions.el
parent0d6c0881a81e2ba3a1cd88f8ae9dab6a86c966af (diff)
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)
Diffstat (limited to 'emacs.d/wpc/string-functions.el')
-rw-r--r--emacs.d/wpc/string-functions.el10
1 files changed, 10 insertions, 0 deletions
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)