-
Update system packages:
sudo apt update && sudo apt upgrade -y -
Install the essential tools:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (define-key global-map [f1] 'find-file) | |
| (define-key global-map [f2] 'save-buffer) | |
| (define-key global-map [f3] 'revert-buffer) | |
| (define-key global-map [f4] 'buffer-menu) | |
| (define-key esc-map [f1] 'view-file) | |
| (define-key esc-map [f2] 'save-all-buffers) | |
| (define-key esc-map [f3] 'kill-current-buffer) | |
| (define-key esc-map [f4] 'goto-line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ============================================================ | |
| ;; Emacs 30.2 — Scala IDE Configuration (Clean Test Config) | |
| ;; Approach: lsp-mode + Metals (official recommendation) | |
| ;; ============================================================ | |
| ;; ---- Package Management Setup ---- | |
| (require 'package) | |
| (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ============================================================ | |
| # COMPLETE CLEANUP — Removes all traces of Emacs, Java/OpenJDK, | |
| # Coursier, Metals, sbt, and Bloop for a clean-slate reinstall. | |
| # Run as your normal user (it will prompt for sudo as needed). | |
| # ============================================================ | |
| set -uo pipefail | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |