Browse Source

New packages and imporvements

master
Juan Placencia 4 years ago
parent
commit
100fee7fda
6 changed files with 115 additions and 1 deletions
  1. +16
    -0
      uno/modules/app/+index.org
  2. +38
    -0
      uno/modules/app/rss.org
  3. +3
    -0
      uno/modules/dev/format.org
  4. +46
    -0
      uno/modules/dev/rest.org
  5. +11
    -0
      uno/modules/key/vim.org
  6. +1
    -1
      uno/modules/lang/elisp/+index.org

+ 16
- 0
uno/modules/app/+index.org View File

@ -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

+ 38
- 0
uno/modules/app/rss.org View File

@ -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

+ 3
- 0
uno/modules/dev/format.org View File

@ -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

+ 46
- 0
uno/modules/dev/rest.org View File

@ -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

+ 11
- 0
uno/modules/key/vim.org View File

@ -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

+ 1
- 1
uno/modules/lang/elisp/+index.org View File

@ -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)

Loading…
Cancel
Save