From c2d605fbfa2ae4e0ae57d43047699567474959dc Mon Sep 17 00:00:00 2001 From: qorg11 Date: Sun, 7 Jun 2020 12:35:39 +0200 Subject: [PATCH] My Mistake --- .gitignore | 2 + config.el | 168 ----------------------------------------------------- config.org | 14 ++++- recentf | 10 ---- 4 files changed, 14 insertions(+), 180 deletions(-) delete mode 100644 config.el delete mode 100644 recentf diff --git a/.gitignore b/.gitignore index 4eda2ab..739b96d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ auto-save-list elpa +config.el +smex-items diff --git a/config.el b/config.el deleted file mode 100644 index 72d5813..0000000 --- a/config.el +++ /dev/null @@ -1,168 +0,0 @@ -(setq name "qorg11") -(setq email "qorg@vxempire.xyz") - -(require 'package) -(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) - (not (gnutls-available-p)))) - (proto (if no-ssl "http" "https"))) - ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired - (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) - ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) - (when (< emacs-major-version 24) - ;; For important compatibility libraries like cl-lib - (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/"))))) -(package-initialize) -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) - -(defun untabify-buffer () - (interactive) - (untabify (point-min) (point-max))) - -(defun indent-buffer () - (interactive) - (indent-region (point-min) (point-max))) - -(defun cleanup-buffer () - "Perform a bunch of operations on the whitespace content of a buffer. -Including indent-buffer, which should not be called automatically on save." - (interactive) - (untabify-buffer) - (delete-trailing-whitespace) - (indent-buffer)) - -(global-set-key (kbd "C-c n") 'cleanup-buffer) -(global-set-key (kbd "M-m") 'mark-whole-buffer) - -(setq package-enable-at-startup nil) (package-initialize) - -(setq make-backup-files nil) ; stop creating backup~ files -(setq auto-save-default nil) ; stop creating #autosave# files -(put 'upcase-region 'disabled nil) - - -(defun contextual-menubar (&optional frame) -"Display the menubar in FRAME (default: selected frame) if on a -graphical display, but hide it if in terminal." -(interactive) -(set-frame-parameter frame 'menu-bar-lines -(if (display-graphic-p frame) -1 0))) - -(add-hook 'after-make-frame-functions 'contextual-menubar) -(add-hook 'sgml-mode-hook 'zencoding-mode) -(setq-default dired-details-hidden-string "---- ") - -;; (icomplete-mode 1) Deprecated, used ido-mode instead - -(scroll-bar-mode -1) -(tool-bar-mode -1) -(menu-bar-mode -1) -(set-frame-font "IBM Plex Mono 14" nil t) - (load-file "~/.emacs.d/markup.el") - (global-set-key (kbd "M-x") 'smex) - - - (setq-default major-mode 'text-mode) - -(defadvice smex (around space-inserts-hyphen activate compile) - -(let ((ido-cannot-complete-command -`(lambda () -(interactive) -(if (string= " " (this-command-keys)) -(insert ?-) -(funcall ,ido-cannot-complete-command))))) -ad-do-it)) - -(show-paren-mode 1) - (setq show-paren-style 'mixed) - - (setq startup/gc-cons-threshold gc-cons-threshold) - (setq gc-cons-threshold most-positive-fixnum) - (defun startup/reset-gc () (setq gc-cons-threshold startup/gc-cons-threshold)) - (add-hook 'emacs-startup-hook 'startup/reset-gc) - -(defun open-pdf() - (interactive) - (setq file (buffer-substring (mark) (point))) - (shell-command (concat "zathura " file "&") - )) - ;; Borders - (set-face-attribute 'fringe nil - :foreground (face-foreground 'default) - :background (face-background 'default)) - -(add-hook 'org-mode-hook 'org-bullets-mode) -(setq org-hide-emphasis-markers t) - -(use-package linum-relative -:ensure t -:init -(setq-default display-line-numbers-type 'relative -display-line-numbers-current-relative t -display-line-numbers-width 1 -display-line-numbers-widen t) - -(add-hook 'text-mode-hook #'display-line-numbers-mode) -(add-hook 'prog-mode-hook #'display-line-numbers-mode) -(column-number-mode 1)) - -(use-package flycheck -:ensure t -:init -(add-hook 'after-init-hook #'global-flycheck-mode)) - -(use-package zerodark-theme -:ensure t -:config -(load-theme 'zerodark t)) - -(setq erc-nick name) - -(with-eval-after-load 'tex - (setq TeX-source-correlate-method 'synctex) - (TeX-source-correlate-mode) - (setq TeX-source-correlate-start-server t) - - (add-to-list 'TeX-view-program-selection - '(output-pdf "Zathura"))) - -(setq shell "/bin/bash") - (defadvice ansi-term (before force-bsah) -(interactive (list shell))) -(ad-activate 'ansi-term) - -(use-package ido-vertical-mode - :ensure t - :init -(setq ido-enable-flex-matching nil) -(setq ido-create-new-buffer 'always) -(setq ido-everywhere t) -(ido-mode 1) -(ido-vertical-mode 1) -(setq ido-vertical-define-keys 'C-n-and-C-p-only) -(global-set-key (kbd "C-x C-b") 'ido-switch-buffer)) - -(use-package dashboard -:ensure t -:init -(dashboard-setup-startup-hook) -(setq dashboard-items '((recents . 5) -(bookmarks . 5))) -(setq dashboard-startup-banner 'logo) -(setq dashboard-banner-logo-title "Welcome to Editor MACroS") - -(setq dashboard-set-heading-icons t) -(setq dashboard-set-file-icons t)) - -(use-package powerline -:ensure t -:init -(powerline-default-theme) - - (set-face-background 'mode-line - "#080c0d") - (set-face-foreground 'mode-line - "#cad5d8")) diff --git a/config.org b/config.org index 2dc2722..b9aa9c0 100644 --- a/config.org +++ b/config.org @@ -24,6 +24,9 @@ (setq name "qorg11") (setq email "qorg@vxempire.xyz") #+END_SRC +** Dependencies + The only no emacs related dependence in this configuration is the + IBM Plex Mono font. Install it from your distribution packages. * melpa crap melpa, where you get the packages. This also installs use-package #+BEGIN_SRC emacs-lisp @@ -102,12 +105,16 @@ Including indent-buffer, which should not be called automatically on save." Basic customization. I also use smex instead of default M-x. I don't like heml #+BEGIN_SRC emacs-lisp + (scroll-bar-mode -1) (tool-bar-mode -1) (menu-bar-mode -1) (set-frame-font "IBM Plex Mono 14" nil t) (load-file "~/.emacs.d/markup.el") - (global-set-key (kbd "M-x") 'smex) + (use-package smex + :ensure t + :init + (global-set-key (kbd "M-x") 'smex)) (setq-default major-mode 'text-mode) @@ -152,7 +159,10 @@ Including indent-buffer, which should not be called automatically on save." #+END_SRC ** org-mode #+BEGIN_SRC emacs-lisp - (add-hook 'org-mode-hook 'org-bullets-mode) + (use-package org-bullets + :ensure t + :init + (add-hook 'org-mode-hook 'org-bullets-mode)) (setq org-hide-emphasis-markers t) #+END_SRC diff --git a/recentf b/recentf deleted file mode 100644 index d8bfa9f..0000000 --- a/recentf +++ /dev/null @@ -1,10 +0,0 @@ -;;; Automatically generated by ‘recentf’ on Sun Jun 7 12:27:19 2020. - -(setq recentf-list 'nil) - -(setq recentf-filter-changer-current 'nil) - - -;; Local Variables: -;; coding: utf-8-emacs -;; End: