Skip to content

Instantly share code, notes, and snippets.

View nimeshneema's full-sized avatar

Nimesh Neema nimeshneema

View GitHub Profile
(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)
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
;; ============================================================
;; 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)

Emacs Scala IDE with Metals

Install Emacs 30.2

  • Update system packages:

    sudo apt update && sudo apt upgrade -y

  • Install the essential tools:

#!/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'