summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-12-24 11:25:48 +0000
committerYann Herklotz <git@yannherklotz.com>2022-12-24 11:25:48 +0000
commitf52071cc5abdb7b9e38ad8fe86418b30633147d7 (patch)
tree6b8d0149512e438d076256f3488cd565de2f4ced
parent0dc67240444afab06c8b95026b315e125028670d (diff)
downloadymh-emacs-f52071cc5abdb7b9e38ad8fe86418b30633147d7.tar.gz
ymh-emacs-f52071cc5abdb7b9e38ad8fe86418b30633147d7.zip
Add electric pair mode and puni
-rw-r--r--early-init.el1
-rw-r--r--init.el18
-rw-r--r--ymh-emacs/ymh-ebib.el1
3 files changed, 19 insertions, 1 deletions
diff --git a/early-init.el b/early-init.el
index 512068a..e69de29 100644
--- a/early-init.el
+++ b/early-init.el
@@ -1 +0,0 @@
-(setq package-enable-at-startup nil)
diff --git a/init.el b/init.el
index a48afc1..1b672c7 100644
--- a/init.el
+++ b/init.el
@@ -785,6 +785,24 @@ https://yannherklotz.com"))
"lsp_server:main" "-t" "halt" "--"
"stdio"))))
+(use-package puni
+ :ensure t
+ :defer t
+ :init
+ (puni-global-mode)
+ (add-hook 'term-mode-hook #'puni-disable-puni-mode)
+ (add-hook 'text-mode #'puni-disable-puni-mode))
+
+(use-package elec-pair
+ :config
+ (electric-pair-mode 1))
+
+(use-package markdown-mode
+ :ensure t)
+
+(use-package yaml-mode
+ :ensure t)
+
(setq gc-cons-threshold (* 1024 1024 10))
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
diff --git a/ymh-emacs/ymh-ebib.el b/ymh-emacs/ymh-ebib.el
index 646e354..8c10e3a 100644
--- a/ymh-emacs/ymh-ebib.el
+++ b/ymh-emacs/ymh-ebib.el
@@ -10,6 +10,7 @@
;;; Code:
(require 'ebib)
+(require 's)
(defun ymh-ebib-sci-hub-pdf-url (doi)
"Get url to the pdf from SCI-HUB using DOI."