From 2819181dd0106e6ab5b84e9e452f999f88c7dff2 Mon Sep 17 00:00:00 2001 From: Luddifee Date: Mon, 19 Apr 2021 17:20:58 +0200 Subject: [PATCH] added .emacs and some other things --- .emacs | 50 ++++++++++++++++++++++++++++++++++++++++++++++ .emacs.d/init.el | 40 ------------------------------------- .emacs.d/title.txt | 12 +++++++++++ .zshrc | 2 ++ README.md | 1 + 5 files changed, 65 insertions(+), 40 deletions(-) create mode 100644 .emacs delete mode 100644 .emacs.d/init.el create mode 100644 .emacs.d/title.txt diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..2695aa8 --- /dev/null +++ b/.emacs @@ -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)) + diff --git a/.emacs.d/init.el b/.emacs.d/init.el deleted file mode 100644 index a1819c7..0000000 --- a/.emacs.d/init.el +++ /dev/null @@ -1,40 +0,0 @@ -;;; init.el -*- lexical-binding: t; -*- -;; -;; Author: Henrik Lissner -;; 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) diff --git a/.emacs.d/title.txt b/.emacs.d/title.txt new file mode 100644 index 0000000..af98b6c --- /dev/null +++ b/.emacs.d/title.txt @@ -0,0 +1,12 @@ + +▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████ +▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒ +▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄ +▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒ +░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒ +░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░ + ░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░ + ░ ░ ░ ░ ▒ ░ ░ ░ ░ + ░ ░ ░ ░ ░░ ░ ░ + ░ + diff --git a/.zshrc b/.zshrc index 6b2ff0c..99ceae7 100644 --- a/.zshrc +++ b/.zshrc @@ -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" diff --git a/README.md b/README.md index dfcbd6b..e05329d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # dotfiles dotfiles including scripts +