From 100fee7fdafc20226bced403070150087bc2f4f9 Mon Sep 17 00:00:00 2001 From: Juan Placencia Date: Thu, 10 Jun 2021 22:12:55 -0500 Subject: [PATCH] New packages and imporvements --- uno/modules/app/+index.org | 16 +++++++++++ uno/modules/app/rss.org | 38 +++++++++++++++++++++++++ uno/modules/dev/format.org | 3 ++ uno/modules/dev/rest.org | 46 +++++++++++++++++++++++++++++++ uno/modules/key/vim.org | 11 ++++++++ uno/modules/lang/elisp/+index.org | 2 +- 6 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 uno/modules/app/+index.org create mode 100644 uno/modules/app/rss.org create mode 100644 uno/modules/dev/rest.org diff --git a/uno/modules/app/+index.org b/uno/modules/app/+index.org new file mode 100644 index 0000000..d06c752 --- /dev/null +++ b/uno/modules/app/+index.org @@ -0,0 +1,16 @@ +#+TITLE: App +#+AUTHOR: Juan Placencia + +* Package + +Define app package. + +#+BEGIN_SRC emacs-lisp + (use-package emacs + :after uno + :general + (uno-leader-define + "a" '(:ignore t :which-key "Apps")) + :config + (provide 'uno-app)) +#+END_SRC diff --git a/uno/modules/app/rss.org b/uno/modules/app/rss.org new file mode 100644 index 0000000..78eda6b --- /dev/null +++ b/uno/modules/app/rss.org @@ -0,0 +1,38 @@ +#+TITLE: App - RSS +#+AUTHOR: Juan Placencia + +* Package + +Define RSS app package. + +#+BEGIN_SRC emacs-lisp + (use-package emacs + :after uno-app + :config + (provide 'uno-app-rss)) +#+END_SRC + +* RSS + +Use =elfeed= to provide an interface for RSS feeds. + +#+BEGIN_SRC emacs-lisp + (use-package elfeed + :after uno-app-rss + :custom + (elfeed-db-directory (uno-cache-path "elfeed")) + :general + (uno-leader-define + "ar" '(elfeed :which-key "RSS"))) +#+END_SRC + +* Org Integration + +Use =elfeed-org= to provide easier management. + +#+BEGIN_SRC emacs-lisp + (use-package elfeed-org + :after (uno-app-rss elfeed) + :config + (elfeed-org)) +#+END_SRC diff --git a/uno/modules/dev/format.org b/uno/modules/dev/format.org index d8e9a12..b8b30d0 100644 --- a/uno/modules/dev/format.org +++ b/uno/modules/dev/format.org @@ -47,5 +47,8 @@ Helpers are borrowed from Spacemacs. (smartparens-strict-mode 1))) :config (show-smartparens-global-mode 1) + (sp-with-modes sp-lisp-modes + (sp-local-pair "'" nil :actions nil) + (sp-local-pair "`" "'" :when '(sp-in-string-p sp-in-comment-p))) (sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)) #+END_SRC diff --git a/uno/modules/dev/rest.org b/uno/modules/dev/rest.org new file mode 100644 index 0000000..8f63985 --- /dev/null +++ b/uno/modules/dev/rest.org @@ -0,0 +1,46 @@ +#+TITLE: Dev - REST +#+AUTHOR: Juan Placencia + +* Package + +Define REST dev package. + +#+BEGIN_SRC emacs-lisp + (use-package emacs + :after uno-dev + :config + (provide 'uno-dev-rest)) +#+END_SRC + +* Restclient + +#+BEGIN_SRC emacs-lisp + (use-package restclient + :after uno-dev-rest + :general + (uno-mode-leader-define + :keymaps 'restclient-mode-map + "n" '(restclient-jump-next :which-key "Next") + "p" '(restclient-jump-prev :which-key "Previous") + "s" '(restclient-http-send-current-stay-in-window :which-key "Send") + "S" '(restclient-http-send-current :which-key "Send and focus") + "r" '(uno/dev/rest/raw-no-focus :which-key "Send raw") + "R" '(restclient-http-send-current-raw :which-key "Send raw and focus") + "y" '(restclient-copy-curl-command :which-key "Copy curl command")) + :init + (defun uno/dev/rest/raw-no-focus () + "Send HTTP request raw for restclient without losing focus." + (interactive) + (restclient-http-send-current t t)) + (push '("\\.http\\'" . restclient-mode) auto-mode-alist)) + + (use-package company-restclient + :after (uno-dev-rest restclient) + :config + (add-to-list 'company-backends 'company-restclient)) + + (use-package ob-restclient + :after (uno-dev-rest org restclient) + :config + (org-babel-do-load-languages 'org-babel-load-languages '((restclient . t)))) +#+END_SRC diff --git a/uno/modules/key/vim.org b/uno/modules/key/vim.org index 09b7281..be95369 100644 --- a/uno/modules/key/vim.org +++ b/uno/modules/key/vim.org @@ -39,6 +39,7 @@ Define Vim key package. #+END_SRC ** Comment + #+BEGIN_SRC emacs-lisp (use-package evil-nerd-commenter :after (uno-key-vim evil) @@ -64,3 +65,13 @@ Define Vim key package. :config (global-anzu-mode 1)) #+END_SRC + +** Folding + +#+BEGIN_SRC emacs-lisp + (use-package origami + :after uno-key-vim + :disabled + :config + (global-origami-mode 1)) +#+END_SRC diff --git a/uno/modules/lang/elisp/+index.org b/uno/modules/lang/elisp/+index.org index a0ffc19..129ecf5 100644 --- a/uno/modules/lang/elisp/+index.org +++ b/uno/modules/lang/elisp/+index.org @@ -16,7 +16,7 @@ Define Emacs Lisp language package. #+BEGIN_SRC emacs-lisp (use-package emacs - :after flycheck + :after (uno-lang-elisp flycheck) :hook (emacs-lisp-mode . flycheck-mode) (emacs-lisp-mode . uno/emacs-lisp/check-org-src)