Fix the installation bug by ensuring the /usr/local/bin/ exists

This commit is contained in:
Sameer Rahmani 2020-05-19 09:35:52 +01:00
parent 3ad45df235
commit d28b1d855f
4 changed files with 13 additions and 2 deletions

7
.gitignore vendored
View File

@ -24,4 +24,9 @@ lib/**/*.elc
tmp/
test-runner/
.fpkg/
/fg42-wm
/fg42-wm
projectile-bookmarks.eld
smex-items
elpa/
bm-repository
.fpkg-v3/

View File

@ -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

View File

@ -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

View File

@ -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