mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
This is a breaking change! Update your :popup settings. Old ones will throw errors! Doom's new popup management system casts off its shackles (hur hur) and replaces them with the monster that is `display-buffer-alist`, and window parameters. However, this is highly experimental! Expect edge cases. Particularly with org-mode and magit (or anything that does its own window management). Relevant to #261, #263, #325
20 lines
744 B
EmacsLisp
20 lines
744 B
EmacsLisp
;;; lang/rest/config.el -*- lexical-binding: t; -*-
|
|
|
|
(def-package! restclient
|
|
:commands restclient-mode
|
|
:mode ("\\.http$" . restclient-mode)
|
|
:config
|
|
(set! :popup "^\\*HTTP Response" '((size . 0.4)) '((escape-quit . other)))
|
|
(map! :mode restclient-mode
|
|
:n [M-return] 'restclient-http-send-current
|
|
:localleader
|
|
:desc "Execute HTTP request" :n "e" 'restclient-http-send-current
|
|
:desc "Execute raw HTTP request" :n "E" 'restclient-http-send-current-raw
|
|
:desc "Copy curl command" :n "c" 'restclient-copy-curl-command))
|
|
|
|
|
|
(def-package! company-restclient
|
|
:when (featurep! :completion company)
|
|
:after restclient
|
|
:config (set! :company-backend 'restclient-mode '(company-restclient)))
|