;; this is my current emacs config -subwafer ;; melpa stuff (require 'package) ;; Add MELPA to the list of package archives (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) ;; Initialize the package system (package-initialize) ;; Optional: refresh package list if needed (unless package-archive-contents (package-refresh-contents)) (defun rc/get-default-font () (cond ((eq system-type 'windows-nt) "CaskaydiaMono Nerd Font") ((eq system-type 'gnu-linux) "CaskaydiaMono Nerd Font"))) ;;(load-theme 'tsdh-dark t) (add-to-list 'custom-theme-load-path "~/.emacs.d/themes") ;;(load-theme 'ayu-dark t) (load-theme 'fleury t) ; ui (tool-bar-mode 0) (menu-bar-mode 0) (scroll-bar-mode 0) (show-paren-mode 1) (setq display-line-numbers-type 'relative) (global-display-line-numbers-mode 1) (setq-default fill-column 80) (global-display-fill-column-indicator-mode 1) ; theme related (set-frame-parameter (selected-frame) 'alpha '(95 . 95)) (setq initial-scratch-message "") (setq-default inhibit-splash-screen t make-backup-files nil) (setq-default mode-line-format (list " " 'mode-line-buffer-identification " " 'mode-line-position " " 'mode-name)) ;;; ido (require 'ido-completing-read+) (ido-mode 1) (ido-everywhere 1) (ido-ubiquitous-mode 1) (setq ido-auto-merge-work-directories-length -1) ;; don’t merge directories (global-set-key (kbd "M-x") 'smex) (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) (recentf-mode 1) ;; enable recent files tracking (setq recentf-max-menu-items 25) ;; optional: how many files to track (global-set-key (kbd "C-x r") 'recentf-open-files) (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 '(markdown-mode smex ido-completing-read+))) (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. )