Fix the installation bug by ensuring the /usr/local/bin/ exists
This commit is contained in:
parent
3ad45df235
commit
d28b1d855f
|
@ -24,4 +24,9 @@ lib/**/*.elc
|
|||
tmp/
|
||||
test-runner/
|
||||
.fpkg/
|
||||
/fg42-wm
|
||||
/fg42-wm
|
||||
projectile-bookmarks.eld
|
||||
smex-items
|
||||
elpa/
|
||||
bm-repository
|
||||
.fpkg-v3/
|
1
Makefile
1
Makefile
|
@ -32,6 +32,7 @@ install:
|
|||
@echo 'FG42_WM=true emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $$FG42_HOME/fg42-config.el "$$@"' >> ./fg42-wm
|
||||
@chmod +x ./fg42
|
||||
@chmod +x ./fg42-wm
|
||||
@sudo mkdir -p /usr/local/bin/
|
||||
@sudo rm -f /usr/local/bin/fg42
|
||||
@sudo rm -f /usr/local/bin/fg42-wm
|
||||
@sudo ln -s `pwd`/fg42 /usr/local/bin/fg42
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
(depends-on 'rust-mode)
|
||||
(depends-on 'cargo)
|
||||
(depends-on 'flycheck-rust)
|
||||
|
||||
(extension rust
|
||||
:version 0.0.1
|
||||
:on-initialize extensions/rust-initialize
|
||||
|
|
|
@ -2,10 +2,14 @@
|
|||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun extensions/rust-initialize ()
|
||||
"Initialize Rust extension."
|
||||
(add-hook 'rust-mode-hook #'lsp)
|
||||
(add-hook 'rust-mode-hook #'cargo-minor-mode)
|
||||
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup))
|
||||
|
||||
|
||||
(provide 'extensions/rust/init)
|
||||
;;; init ends here.
|
||||
;;; init.el ends here
|
||||
|
|
Loading…
Reference in New Issue