More stuff

This commit is contained in:
RealStickman 2022-11-30 19:59:42 +01:00
parent 12852fee74
commit daa8c188e0

View File

@ -5,58 +5,44 @@
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
#+END_SRC #+END_SRC
** Disable menu bar ** Disable bars
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(menu-bar-mode -1) (menu-bar-mode -1) ; Disable menubar
(tool-bar-mode -1) ; Disable toolbar
(scroll-bar-mode -1) ; Disable scrollbar
#+END_SRC #+END_SRC
** Other ** Other
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(scroll-bar-mode -1) ; Disable visible scrollbar ;(tooltip-mode -1) ; Disable tooltips
(tool-bar-mode -1) ; Disable the toolbar ;(set-fringe-mode 10) ; Give some breathing room
(tooltip-mode -1) ; Disable tooltips
(set-fringe-mode 10) ; Give some breathing room
;; Make ESC quit prompts ;; Make ESC quit prompts
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) ;(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Initialize package sources
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; Initialize use-package on non-Linux platforms
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package) ;(use-package command-log-mode)
(setq use-package-always-ensure t)
(use-package command-log-mode) ;(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))
(use-package ivy ;(use-package doom-modeline
:diminish ; :ensure t
:bind (("C-s" . swiper) ; :init (doom-modeline-mode 1)
:map ivy-minibuffer-map ; :custom ((doom-modeline-height 15)))
("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))
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1)
:custom ((doom-modeline-height 15)))
#+END_SRC #+END_SRC
** Fonts config ** Fonts config
@ -68,3 +54,65 @@
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;(load-theme 'doom-palenight) ;(load-theme 'doom-palenight)
#+END_SRC #+END_SRC
* Package management
** Set package sources
#+BEGIN_SRC emacs-lisp
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
#+END_SRC
** Use-package
#+BEGIN_SRC emacs-lisp
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
#+END_SRC
** Evil
#+BEGIN_SRC emacs-lisp
(use-package evil
:bind (("<escape>" . keyboard-escape-quit))
:init
;; allows for using cgn
;; (setq evil-search-module 'evil-search)
(setq evil-want-keybinding nil)
;; no vim insert bindings
(setq evil-undo-system 'undo-fu)
:config
(evil-mode 1))
;(use-package evil-collection
; :after evil
; :config
; (setq evil-want-integration t)
; (evil-collection-init))
#+END_SRC
** Doom Modeline
#+BEGIN_SRC emacs-lisp
;(use-package doom-modeline
; :init (doom-modeline-mode 1)
; :custom ((doom-modeline-height 15)))
#+END_SRC
** Ivy
#+BEGIN_SRC emacs-lisp
;(use-package ivy
; :diminish
; :config (ivy-mode 1))
#+END_SRC
** Org Mode
#+BEGIN_SRC emacs-lisp
#+END_SRC
* Keybindings
#+BEGIN_SRC emacs-lisp
#+END_SRC