Browse Source

Bugfixes

master
Juan Placencia 4 years ago
parent
commit
16191caabc
9 changed files with 63 additions and 10 deletions
  1. +1
    -0
      uno/.gitignore
  2. +15
    -3
      uno/bootstrap.org
  3. +15
    -1
      uno/modules/app/rss.org
  4. +1
    -1
      uno/modules/config.org
  5. +27
    -0
      uno/modules/dev/help.org
  6. +3
    -0
      uno/modules/doc/org.org
  7. +0
    -3
      uno/modules/key/emacs.org
  8. +0
    -2
      uno/modules/key/vim.org
  9. +1
    -0
      uno/modules/window.org

+ 1
- 0
uno/.gitignore View File

@ -1 +1,2 @@
*.el
/private/

+ 15
- 3
uno/bootstrap.org View File

@ -16,6 +16,9 @@
(defun uno-cache-path (name)
(uno-emacs-path (concat "cache/" name)))
(defun uno-private-path (name)
(uno-path (concat "private/" name)))
#+END_SRC
* Backup Files
@ -68,6 +71,15 @@ Set up general and leader key binds that are used throughout.
(general-evil-setup))
(use-package general
:custom
(general-override-states '(insert
emacs
hybrid
normal
visual
motion
operator
replace))
:init
(defvar uno-leader-key "SPC"
"Leader key.")
@ -75,13 +87,13 @@ Set up general and leader key binds that are used throughout.
"Mode leader key.")
:config
(general-create-definer uno-define
:states 'motion)
:states '(motion normal visual))
(general-create-definer uno-leader-define
:prefix uno-leader-key
:states 'motion)
:states '(motion normal visual))
(general-create-definer uno-mode-leader-define
:prefix uno-mode-leader-key
:states 'motion)
:states '(motion normal visual))
(uno-leader-define "" nil)
(uno-mode-leader-define "" nil))
#+END_SRC

+ 15
- 1
uno/modules/app/rss.org View File

@ -22,8 +22,20 @@ Use =elfeed= to provide an interface for RSS feeds.
:custom
(elfeed-db-directory (uno-cache-path "elfeed"))
:general
(uno-define
:keymaps 'elfeed-search-mode-map
"r" 'elfeed-update)
(uno-leader-define
"ar" '(elfeed :which-key "RSS")))
"ar" '(elfeed :which-key "RSS")
"fer" '(uno/app/rss/edit :which-key "Edit RSS configuration"))
:init
(defvar uno-app-rss-config (uno-private-path "elfeed.org")
"Path for RSS configuration.")
(defun uno/app/rss/edit ()
"Open RSS configuration."
(interactive)
(find-file uno-app-rss-config))
(uno/add-useless-buffer "\\*elfeed-log\\*"))
#+END_SRC
* Org Integration
@ -33,6 +45,8 @@ Use =elfeed-org= to provide easier management.
#+BEGIN_SRC emacs-lisp
(use-package elfeed-org
:after (uno-app-rss elfeed)
:custom
(rmh-elfeed-org-files `(,uno-app-rss-config))
:config
(elfeed-org))
#+END_SRC

+ 1
- 1
uno/modules/config.org View File

@ -20,7 +20,7 @@ Define core config package.
:general
(uno-leader-define
"fed" '(uno/config/edit :which-key "Edit emacs configuration")
"fer" '(uno/config/reload :which-key "Reload Emacs configuration")
"feR" '(uno/config/reload :which-key "Reload Emacs configuration")
"fs" '(save-buffer :which-key "Save file")
"fS" '(uno/file/save-all-files :which-key "Save all files"))
:init

+ 27
- 0
uno/modules/dev/help.org View File

@ -0,0 +1,27 @@
#+TITLE: Dev - Help
#+AUTHOR: Juan Placencia
* Package
Define help dev package.
#+BEGIN_SRC emacs-lisp
(use-package emacs
:after uno-dev
:config
(provide 'uno-dev-help))
#+END_SRC
* Helpful
#+BEGIN_SRC emacs-lisp
(use-package helpful
:after uno-dev-help
:general
(uno-leader-define
"hdf" '(helpful-callable :which-key "Describe function")
"hdk" '(helpful-key :which-key "Describe key")
"hdv" '(helpful-variable :which-key "Describe variable"))
:config
(uno/handle-side-window "\\*helpful *"))
#+END_SRC

+ 3
- 0
uno/modules/doc/org.org View File

@ -29,6 +29,9 @@ Define Org document package.
:general
(uno-mode-leader-define
:keymaps 'org-mode-map
"i" '(:ignore t :which-key "Insert")
"il" '(org-insert-link :which-key "Set link")
"it" '(org-set-tags-command :which-key "Set tags")
"p" '(org-present :which-key "Org present")
"'" '(org-edit-special :which-key "Edit special"))
(uno-mode-leader-define

+ 0
- 3
uno/modules/key/emacs.org View File

@ -32,13 +32,10 @@ Define core keybinds.
"hd" '(:ignore t :which-key "Describe")
"hdb" '(describe-bindings :which-key "Describe bindings")
"hdc" '(describe-char :which-key "Describe char")
"hdf" '(describe-function :which-key "Describe function")
"hdF" '(describe-face :which-key "Describe face")
"hdk" '(describe-key :which-key "Describe key")
"hdm" '(describe-mode :which-key "Describe mode")
"hdp" '(describe-package :which-key "Describe package")
"hdt" '(describe-theme :which-key "Describe theme")
"hdv" '(describe-variable :which-key "Describe variable")
"q" '(:ignore t :which-key "Quit")
"qq" '(save-buffers-kill-terminal :which-key "Save all and quit Emacs")
"qQ" '(kill-emacs :which-key "Quit Emacs")

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

@ -21,8 +21,6 @@ Define Vim key package.
(evil-split-window-before t)
(evil-vsplit-window-right t)
(evil-want-integration t)
:hook
(uno-special-mode . evil-motion-state)
:general
(uno-define ";" 'evil-ex)
:init

+ 1
- 0
uno/modules/window.org View File

@ -38,6 +38,7 @@ Define where certain buffers go where in the window.
:config
(uno/handle-side-window "\\*Backtrace\\*")
(uno/handle-side-window "\\*Compile-Log\\*")
(uno/handle-side-window "\\*Completions\\*")
(uno/handle-side-window "\\*eshell\\*" 'bottom -1)
(uno/handle-side-window "\\*[Hh]elp\\*")
(uno/handle-side-window "\\*Messages\\*")

Loading…
Cancel
Save