From 030d0cbb30dae8fa12a35e8355afc76a7bd7bece Mon Sep 17 00:00:00 2001 From: Julius Klotz Date: Thu, 28 Aug 2025 22:33:27 +0200 Subject: [PATCH] added emacs stuff --- emacs/init.el | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index 81ab204..eaeb637 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1,6 +1,64 @@ (setq inhibit-startup-message t) (menu-bar-mode -1) +(tooltip-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) + (global-display-line-numbers-mode 1) +(set-face-attribute 'default nil :font "JetBrains Mono" :height 130) +(load-theme 'leuven-dark) + +(global-set-key (kbd "") 'keyboard-escape-quit) + +(require 'package) + +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("melpa-stable" . "https://stable.melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) +(package-initialize) +(unless package-archive-contents + (package-refresh-contents)) + +;; macos +(unless (package-installed-p 'use-package) + (package-install 'use-package)) + +(require 'use-package) +(setq use-package-always-ensure t) +(use-package swiper :ensure t) + +(use-package ivy + :diminish + :bind (("C-s" . swiper) + :map ivy-minibuffer-map + ("TAB" . ivy-alt-done) + ("C-l" . ivy-alt-done) + ("C-j" . ivy-next-line) + ("C-k" . ivy-previous-line) + :map ivy-switch-buffer-map + ("C-k" . ivy-previous-line) + ("C-l" . ivy-done) + ("C-d" . ivy-switch-buffer-kill) + :map ivy-reverse-i-search-map + ("C-k" . ivy-previous-line) + ("C-d" . ivy-reverse-i-search-kill)) + :config + (ivy-mode 1)) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(package-selected-packages '(doom-modeline ivy swiper))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) + +(use-package doom-modeline + :ensure t + :hook (after-init . doom-modeline-mode))