aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom/config.el
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-04-23 15:57:30 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-04-23 15:57:30 +0200
commitd0fe115925e1542d5948d82a3df1b8f6e989b29f (patch)
tree95519c58e602e2f6b00353cfa7c4af9b68bcdb25 /config/doom/config.el
parent3cb81994c46549b30dec04e6b0020e8dbb04716f (diff)
downloaddotfiles-d0fe115925e1542d5948d82a3df1b8f6e989b29f.tar.gz
dotfiles-d0fe115925e1542d5948d82a3df1b8f6e989b29f.tar.bz2
dotfiles-d0fe115925e1542d5948d82a3df1b8f6e989b29f.zip
fix doom configuration
Diffstat (limited to 'config/doom/config.el')
-rw-r--r--config/doom/config.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/config/doom/config.el b/config/doom/config.el
index 90df404..93b4800 100644
--- a/config/doom/config.el
+++ b/config/doom/config.el
@@ -58,5 +58,20 @@
(setq haskell-process-args-cabal-repl
'("--ghc-option=-ferror-spans"
- "--ghc-options=-dynamic")
- dante-repl-command-line '("cabal" "v2-repl" dante-target "--builddir=newdist/dante" "--ghc-options=-dynamic"))
+ "--ghc-option=-dynamic")
+ dante-repl-command-line '("cabal" "v2-repl" dante-target "--ghc-options=-dynamic"))
+
+(if (string-equal (user-login-name) "on")
+ (setenv "SSH_AUTH_SOCK" (concat "/run/user/1000/gnupg/S.gpg-agent.ssh"))
+ (setenv "SSH_AUTH_SOCK" (concat (getenv "XDG_RUNTIME_DIR")"/gnupg/S.gpg-agent.ssh")))
+
+
+;; https://tecosaur.github.io/emacs-config/#dictionary
+(defadvice! +lookup/dictionary-definition-lexic (identifier &optional arg)
+ "Look up the definition of the word at point (or selection) using `lexic-search'."
+ :override #'+lookup/dictionary-definition
+ (interactive
+ (list (or (doom-thing-at-point-or-region 'word)
+ (read-string "Look up in dictionary: "))
+ current-prefix-arg))
+ (lexic-search identifier nil nil t))