From ba976f7f5dc4e6cc63b15af4683cab0fae7114c8 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 10 Aug 2024 09:15:41 -0500 Subject: [PATCH] Trying devdocs --- user/app/doom-emacs/config.el | 7 +++++++ user/app/doom-emacs/doom.org | 13 ++++++++++++- user/app/doom-emacs/packages.el | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 19af93c..91ba209 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -165,6 +165,8 @@ (map! :leader :desc "Open dashboard" "b b" #'dashboard-refresh-buffer) +(setq scroll-conservatively 101) + ;; Smooth scrolling ;; requires good-scroll.el ;;(good-scroll-mode 1) @@ -1592,6 +1594,11 @@ Please set the variable `org-directory' to the location where you keep your org (map! :leader :desc "Find definition using lsp" "L d" #'lsp-find-definition) +;; devdocs are cool +(require 'devdocs) + +(map! :leader :desc "Peruse devdocs" "L p" #'devdocs-peruse) + (add-to-list 'tramp-remote-path 'tramp-own-remote-path) (after! vterm (add-to-list 'vterm-tramp-shells '("ssh" "zsh")) ;; I use zsh on all my servers diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index e68a049..1aef482 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -24,6 +24,7 @@ - [[#projectile][Projectile]] - [[#sudo-edit][sudo-edit]] - [[#lsp][LSP]] + - [[#devdocs][DevDocs]] - [[#terminal][Terminal]] - [[#elfeed][Elfeed]] - [[#my-initel][My init.el]] @@ -228,6 +229,8 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu (map! :leader :desc "Open dashboard" "b b" #'dashboard-refresh-buffer) +(setq scroll-conservatively 101) + ;; Smooth scrolling ;; requires good-scroll.el ;;(good-scroll-mode 1) @@ -1868,8 +1871,15 @@ I don't have this active right now since it's kinda weird with pgtk... (map! :leader :desc "Find definition using lsp" "L d" #'lsp-find-definition) - #+END_SRC +** DevDocs +#+BEGIN_SRC emacs-lisp :tangle config.el +;; devdocs are cool +(require 'devdocs) + +(map! :leader :desc "Peruse devdocs" "L p" #'devdocs-peruse) +#+END_SRC + ** Terminal #+BEGIN_SRC emacs-lisp :tangle config.el (add-to-list 'tramp-remote-path 'tramp-own-remote-path) @@ -2161,6 +2171,7 @@ Any git package can be configured for a particular commit or branch: (package! sudo-edit) (package! solaire-mode :disable t) (package! el-patch) +(package! devdocs) #+END_SRC * Nix Integration In order to have Nix load my Doom Emacs configuration [[./doom.nix][doom.nix]], which I source in the =imports= block of my [[../../../profiles/work/home.nix][home.nix]]. diff --git a/user/app/doom-emacs/packages.el b/user/app/doom-emacs/packages.el index ecaccb8..4d367bf 100644 --- a/user/app/doom-emacs/packages.el +++ b/user/app/doom-emacs/packages.el @@ -35,3 +35,4 @@ (package! sudo-edit) (package! solaire-mode :disable t) (package! el-patch) +(package! devdocs)