Add flycheck cube
This commit is contained in:
parent
d4aa08311f
commit
a62c529605
|
@ -24,6 +24,17 @@
|
|||
(require 'fpkg)
|
||||
(require 'fg42/cube)
|
||||
|
||||
(defcube fg42/flycheck-cube
|
||||
(:docs "cubes/fg42/flycheck-cube.org")
|
||||
(fpkg/use flycheck
|
||||
:defer ()
|
||||
:init
|
||||
(global-flycheck-mode)))
|
||||
|
||||
(defcube fg42/yaml-cube
|
||||
(:docs "cubes/fg42/prog-cubes.org")
|
||||
(fpkg/use yaml-mode))
|
||||
|
||||
(defcube fg42/lsp-cube
|
||||
(:docs "cubes/fg42/lsp-cube.org")
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
:defer t
|
||||
:init
|
||||
(progn
|
||||
(setq prescient-filter-method '(literal fuzzy regexp initialism))
|
||||
(selectrum-prescient-mode +1)
|
||||
(prescient-persist-mode +1)))
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
;; Simple package manager for FG42
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
|
||||
;;(require 'use-package)
|
||||
|
||||
|
||||
|
@ -35,6 +33,7 @@
|
|||
args
|
||||
(append args '(:straight t))))
|
||||
|
||||
|
||||
(defun inject-defer (args)
|
||||
"Inject `:defer t' to ARGS it the key was missing."
|
||||
(if (member :defer args)
|
||||
|
@ -43,13 +42,12 @@
|
|||
|
||||
|
||||
(defmacro fpkg/use (pkg &rest details)
|
||||
"Install the given package details PKG via use-package and straight."
|
||||
"Install the given package DETAILS PKG via use-package and straight."
|
||||
(declare (indent defun))
|
||||
|
||||
(if (and (listp details) (< 0 (length details)))
|
||||
(let ((params (inject-straight (inject-defer details))))
|
||||
(progn
|
||||
(message ">>> %s %s" pkg details)
|
||||
`(use-package ,pkg ,@params)))
|
||||
`(use-package ,pkg :straight t :defer t)))
|
||||
|
||||
|
|
5
dev.org
5
dev.org
|
@ -41,6 +41,11 @@ On the first level, I should feel comfortable with it.
|
|||
** TODO Create a macro similar to =with-ability= to run a block of code only if the given cube was active
|
||||
** TODO Enable =straight= and =use-package= integration on compile time. Checout out =fpkg/core.el=
|
||||
** TODO Check the =dracula= theme settings and configurations
|
||||
** TODO Add support for MacOS by create a cube with the following content
|
||||
#+BEGIN_SRC elisp
|
||||
(package-install 'exec-path-from-shell)
|
||||
(exec-path-from-shell-initialize)
|
||||
#+END_SRC
|
||||
* Things that didn't work out
|
||||
- rbenv
|
||||
- helm
|
||||
|
|
Loading…
Reference in New Issue