Browse Source

Add flycheck cube

modify-logo
Sameer Rahmani 2 years ago
parent
commit
a62c529605
  1. 11
      core/cubes/autocompletion.el
  2. 1
      core/cubes/editor.el
  3. 6
      core/fpkg.el
  4. 5
      dev.org

11
core/cubes/autocompletion.el

@ -24,6 +24,17 @@ @@ -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")

1
core/cubes/editor.el

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

6
core/fpkg.el

@ -24,8 +24,6 @@ @@ -24,8 +24,6 @@
;; Simple package manager for FG42
;;
;;; Code:
;;(require 'use-package)
@ -35,6 +33,7 @@ @@ -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 @@ @@ -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

@ -41,6 +41,11 @@ On the first level, I should feel comfortable with it. @@ -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…
Cancel
Save