Add flycheck cube

This commit is contained in:
Sameer Rahmani 2021-05-03 00:45:03 +01:00
parent d4aa08311f
commit a62c529605
4 changed files with 19 additions and 4 deletions

View File

@ -24,6 +24,17 @@
(require 'fpkg) (require 'fpkg)
(require 'fg42/cube) (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 (defcube fg42/lsp-cube
(:docs "cubes/fg42/lsp-cube.org") (:docs "cubes/fg42/lsp-cube.org")

View File

@ -75,6 +75,7 @@
:defer t :defer t
:init :init
(progn (progn
(setq prescient-filter-method '(literal fuzzy regexp initialism))
(selectrum-prescient-mode +1) (selectrum-prescient-mode +1)
(prescient-persist-mode +1))) (prescient-persist-mode +1)))

View File

@ -24,8 +24,6 @@
;; Simple package manager for FG42 ;; Simple package manager for FG42
;; ;;
;;; Code: ;;; Code:
;;(require 'use-package) ;;(require 'use-package)
@ -35,6 +33,7 @@
args args
(append args '(:straight t)))) (append args '(:straight t))))
(defun inject-defer (args) (defun inject-defer (args)
"Inject `:defer t' to ARGS it the key was missing." "Inject `:defer t' to ARGS it the key was missing."
(if (member :defer args) (if (member :defer args)
@ -43,13 +42,12 @@
(defmacro fpkg/use (pkg &rest details) (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)) (declare (indent defun))
(if (and (listp details) (< 0 (length details))) (if (and (listp details) (< 0 (length details)))
(let ((params (inject-straight (inject-defer details)))) (let ((params (inject-straight (inject-defer details))))
(progn (progn
(message ">>> %s %s" pkg details)
`(use-package ,pkg ,@params))) `(use-package ,pkg ,@params)))
`(use-package ,pkg :straight t :defer t))) `(use-package ,pkg :straight t :defer t)))

View File

@ -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 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 Enable =straight= and =use-package= integration on compile time. Checout out =fpkg/core.el=
** TODO Check the =dracula= theme settings and configurations ** 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 * Things that didn't work out
- rbenv - rbenv
- helm - helm