added .emacs and some other things

This commit is contained in:
Luddifee 2021-04-19 17:20:58 +02:00
parent 015a666eea
commit 2819181dd0
5 changed files with 65 additions and 40 deletions

50
.emacs Normal file
View File

@ -0,0 +1,50 @@
;; Ludwig Lehnert (c) 2021
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(custom-set-variables
;; auto-generated stuff
'(custom-safe-themes
'("d14f3df28603e9517eb8fb7518b662d653b25b26e83bd8e129acea042b774298" default))
'(package-selected-packages '(projectile dashboard pylint evil gruvbox-theme ##))
;; dashboard setup
'(dashboard-banner-logo-title "Welcome to Emacs Dashboard")
'(dashboard-center-content t)
'(dashboard-items
'((recents . 5)
(bookmarks . 5)
(registers . 5)))
'(dashboard-startup-banner "~/.emacs.d/title.txt")
'(dashboard-footer-messages nil)
;; some general settings
'(global-display-line-numbers-mode t)
'(make-backup-files nil)
'(menu-bar-mode nil)
'(scroll-bar-mode nil)
'(tool-bar-mode nil)
'(tooltip-mode nil))
(custom-set-faces)
;; enable evil mode
(require 'evil)
(evil-mode 1)
;; load gruvbox theme
(load-theme 'gruvbox t)
;; set font size
(set-face-attribute 'default (selected-frame) :height 145)
;; start startup screen
(require 'dashboard)
(dashboard-setup-startup-hook)
;; define custom command
(defun spg ()
(interactive)
(fancy-about-screen))

View File

@ -1,40 +0,0 @@
;;; init.el -*- lexical-binding: t; -*-
;;
;; Author: Henrik Lissner <henrik@lissner.net>
;; URL: https://github.com/hlissner/doom-emacs
;;
;; ================= =============== =============== ======== ========
;; \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . //
;; ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
;; || . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||
;; ||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||
;; || . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\ . . . . ||
;; ||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\_ . .|. .||
;; || . _|| || || || || ||_ . || || . _|| || || || |\ `-_/| . ||
;; ||_-' || .|/ || || \|. || `-_|| ||_-' || .|/ || || | \ / |-_.||
;; || ||_-' || || `-_|| || || ||_-' || || | \ / | `||
;; || `' || || `' || || `' || || | \ / | ||
;; || .===' `===. .==='.`===. .===' /==. | \/ | ||
;; || .==' \_|-_ `===. .===' _|_ `===. .===' _-|/ `== \/ | ||
;; || .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \/ | ||
;; || .==' _-' '-__\._-' '-_./__-' `' |. /| | ||
;; ||.==' _-' `' | /==.||
;; ==' _-' \/ `==
;; \ _-' `-_ /
;; `'' ``'
;;
;; These demons are not part of GNU Emacs.
;;
;;; License: MIT
;; In the strange case that early-init.el wasn't loaded (e.g. you're using
;; Chemacs 1? Or you're loading this file directly?), we do it explicitly:
(unless (boundp 'doom-version)
(load (concat (file-name-directory load-file-name) "early-init")
nil t))
;; And let 'er rip!
(doom-initialize)
;; SET FONT SIZE
(set-face-attribute 'default' nil :height 140)

12
.emacs.d/title.txt Normal file
View File

@ -0,0 +1,12 @@
▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████
▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒
▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄
▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒
░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒
░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░
░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░
░ ░ ░ ░ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░░ ░ ░

2
.zshrc
View File

@ -43,6 +43,8 @@ alias wget="wget -c"
alias pacman="sudo pacman --color auto"
alias emacs="emacs -nw"
function gcm() { git add .; git commit -m "$1"; }
alias gcm=gcm
alias gp="git push"

View File

@ -1,2 +1,3 @@
# dotfiles
dotfiles including scripts