2025-01-14 19:05:36 +02:00
|
|
|
;; Get deps on Debian w/
|
|
|
|
;; sudo apt install elpa-monokai-theme elpa-go-mode elpa-rust-mode elpa-php-mode elpa-which-key elpa-magit elpa-web-mode elpa-flycheck
|
|
|
|
|
|
|
|
;; configure packages that are installed ABOVE
|
|
|
|
(load-theme 'monokai t)
|
|
|
|
(which-key-mode +1)
|
|
|
|
|
2023-10-19 05:12:33 +03:00
|
|
|
;; Thank you Bozhidar Batsov for inspiration!
|
|
|
|
;; Inspirational config found from https://github.com/bbatsov/emacs.d/
|
|
|
|
;; Also check out Emacs Prelude at https://github.com/bbatsov/prelude/
|
|
|
|
(setq inhibit-startup-message t)
|
2023-09-22 16:51:00 +03:00
|
|
|
(global-linum-mode t)
|
2025-01-14 19:05:36 +02:00
|
|
|
;(global-whitespace-mode t)
|
2023-10-19 05:12:33 +03:00
|
|
|
(delete-selection-mode t)
|
|
|
|
(global-tab-line-mode t)
|
2025-01-14 19:05:36 +02:00
|
|
|
;(when (fboundp 'tool-bar-mode)
|
|
|
|
; (tool-bar-mode -1))
|
2023-10-02 20:17:27 +03:00
|
|
|
(setq backward-delete-char-untabify-method nil)
|
|
|
|
(setq c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "linux")))
|
|
|
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
2023-10-19 05:12:33 +03:00
|
|
|
|
|
|
|
;; mode line settings
|
|
|
|
(line-number-mode t)
|
|
|
|
(column-number-mode t)
|
|
|
|
(size-indication-mode t)
|
|
|
|
|
2025-01-14 19:05:36 +02:00
|
|
|
;; Tabbbbbbz
|
|
|
|
(setq tab-width 8
|
|
|
|
c-basic-offset tab-width
|
|
|
|
)
|
2023-10-19 05:12:33 +03:00
|
|
|
|
|
|
|
;; nice scrolling
|
|
|
|
(setq scroll-margin 0
|
|
|
|
scroll-conservatively 100000
|
|
|
|
scroll-preserve-screen-position 1)
|
|
|
|
|
|
|
|
;; store all backup and autosave files in the tmp dir
|
|
|
|
(setq backup-directory-alist
|
|
|
|
`((".*" . ,temporary-file-directory)))
|
|
|
|
(setq auto-save-file-name-transforms
|
|
|
|
`((".*" ,temporary-file-directory t)))
|
|
|
|
|
2025-01-14 19:05:36 +02:00
|
|
|
;; Code compilation shenanigans
|
|
|
|
;(setq native-comp-speed -1)
|
|
|
|
;(setq native-comp-jit-compilation nil)
|
|
|
|
;(setq native-comp-enable-subr-trampolines nil)
|
2023-10-19 05:12:33 +03:00
|
|
|
|
|
|
|
(require 'package)
|
|
|
|
|
|
|
|
(add-to-list 'package-archives
|
|
|
|
'("melpa" . "https://melpa.org/packages/") t)
|
|
|
|
;; keep the installed packages in .emacs.d
|
|
|
|
(setq package-user-dir (expand-file-name "elpa" user-emacs-directory))
|
|
|
|
(package-initialize)
|
|
|
|
;; update the package metadata is the local cache is missing
|
|
|
|
(unless package-archive-contents
|
|
|
|
(package-refresh-contents))
|
|
|
|
|
|
|
|
(unless (package-installed-p 'use-package)
|
|
|
|
(package-install 'use-package))
|
|
|
|
|
|
|
|
(require 'use-package)
|
|
|
|
(setq use-package-verbose t)
|
2025-01-14 19:05:36 +02:00
|
|
|
(setq package-install-upgrade-built-in t)
|
|
|
|
|
|
|
|
;; (use-package monokai-theme
|
|
|
|
;; :ensure t
|
|
|
|
;; :config
|
|
|
|
;; (load-theme 'monokai t))
|
2023-10-19 05:12:33 +03:00
|
|
|
|
|
|
|
(use-package hl-line
|
2025-01-14 19:05:36 +02:00
|
|
|
:ensure t
|
2023-10-19 05:12:33 +03:00
|
|
|
:config
|
|
|
|
(global-hl-line-mode +1))
|
|
|
|
|
2025-01-14 19:05:36 +02:00
|
|
|
;; (use-package which-key
|
|
|
|
;; :ensure t
|
|
|
|
;; :config
|
|
|
|
;; (which-key-mode +1)
|
|
|
|
;; ;(diminish 'which-key-mode)
|
|
|
|
;; )
|
2023-10-19 05:12:33 +03:00
|
|
|
|
2025-01-14 19:05:36 +02:00
|
|
|
;; (use-package magit
|
|
|
|
;; :ensure t
|
|
|
|
;; :bind (("C-x g" . magit-status)))
|
2023-10-19 05:12:33 +03:00
|
|
|
|
2025-01-14 19:05:36 +02:00
|
|
|
;; (use-package go-mode
|
|
|
|
;; :ensure t)
|
|
|
|
;; (use-package web-mode
|
|
|
|
;; :ensure t)
|
|
|
|
;; (use-package markdown-mode
|
|
|
|
;; :ensure t)
|
|
|
|
(use-package nasm-mode
|
2023-10-19 05:12:33 +03:00
|
|
|
:ensure t)
|
2025-01-14 19:05:36 +02:00
|
|
|
;; (use-package flycheck
|
|
|
|
;; :ensure t)
|