Install rust-mode for emacs
https://github.com/rust-lang/rust-mode?tab=readme-ov-file#melpa
https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html
https://melpa.org/#/getting-started
create
touch ~/.emacs.d/init.el
add lines to init.el
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
Now you can install rust-mode
with:
M-x package-install rust-mode
And put this in your config to load rust-mode automatically:
(require 'rust-mode)
emacs in the terminal
Prevent launching of a new window for emacs.
sudo ln -s /Applications/Emacs.app/Contents/MacOS/emacs-nw /usr/local/bin/emacs
macOS emacs Universal Binary
emacs osx Universal binary
lipo -arch almost pointless; tried it on the emacs Universal Binary only reduced the size by 4MB. Not worth it.
man lipo
eclecticlight.co has an article about it:lipo -archs Emacs.app/Contents/MacOS/Emacslipo -remove x86_64 Emacs.app/Contents/MacOS/Emacs -output Emacs.app/Contents/MacOS/Emacs2
Instant weight loss: how to strip Universal Apps
Installing emacs-nox (linux)
From PPA:
https://ubuntuhandbook.org/index.php/2022/06/install-gnu-emacs-28-1-ubuntu-22-04-20-04/
## Installing emacs from PPA ##
sudo apt remove --autoremove emacs emacs-common
sudo add-apt-repository ppa:ubuntuhandbook1/emacs
sudo apt install emacs-nox emacs-common
Other methods
https://gist.github.com/rscircus/77e91b36de1e431e0310611a32786e3c
No comments:
Post a Comment