From d4281334f817ca0b31e6d7862edb2c0cfd54529a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 17 Jul 2024 03:03:35 +0200 Subject: [PATCH] Update .emacs.d/README.org Update .emacs.d/early-init.el --- dot_emacs.d/README.org | 26 ++++++++++++++++++++++++++ dot_emacs.d/early-init.el | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/dot_emacs.d/README.org b/dot_emacs.d/README.org index 9eb786d..b219cb1 100644 --- a/dot_emacs.d/README.org +++ b/dot_emacs.d/README.org @@ -25,6 +25,7 @@ - [[#snippets][Snippets]] - [[#magit][Magit]] - [[#docker][Docker]] + - [[#popper][popper]] - [[#languages][Languages]] - [[#mail][Mail]] @@ -353,6 +354,31 @@ Magit is a git client in Emacs. :bind ("C-c d" . docker)) #+end_src +** popper + +Popper is a package that allows us to have popup buffers. This is really useful when working with REPL languages such as Javascript or Go. + +#+begin_src emacs-lisp + (use-package popper + :ensure t ; or :straight t + :bind (("C-c p t" . popper-toggle) + ("C-c p c" . popper-cycle) + ("C-c p w" . popper-toggle-type)) + :init + (setq popper-reference-buffers + '("\\*Messages\\*" + "Output\\*$" + "\\*Async Shell Command\\*" + help-mode + compilation-mode + "^\\*eshell.*\\*$" eshell-mode + "^\\*shell.*\\*$" shell-mode + "^\\*term.*\\*$" term-mode + "^\\*vterm.*\\*$" vterm-mode)) + (popper-mode) + (popper-echo-mode)) +#+end_src + ** Languages *** tree-sitter Tree-sitter is a built-in Emacs package that allows us to have extremely well integrated language grammar. Here, we're setting up the list of sources, most of them being on tree-sitter's official GitHub, as well as hooking up the languages to their different modes. diff --git a/dot_emacs.d/early-init.el b/dot_emacs.d/early-init.el index 8137f52..7dd9aef 100644 --- a/dot_emacs.d/early-init.el +++ b/dot_emacs.d/early-init.el @@ -1,5 +1,5 @@ ;; Enable local variables -(setq enable-local-variables :safe) +(setq enable-local-variables :all) ;; Paths to config.org and the tangled init.el (defvar org-config-file (expand-file-name "README.org" user-emacs-directory))