dot

packages and services management
Log | Files | Refs | README

commit 85edbd1c4fbac4f862bbdd5e45a0ac7a42cc4785
parent 1ffb899258da7a94cafdae9b88eb3d9f7d6a8f8e
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Wed,  5 Apr 2017 23:31:55 +0200

dumber prompt and init.el

Diffstat:
M.emacs.d/init.el | 59++++++++---------------------------------------------------
M.profile | 9+++------
2 files changed, 11 insertions(+), 57 deletions(-)

diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -12,12 +12,10 @@ (when (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (when (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) -;(load-theme 'wheatgrass t) - -(set-frame-font "mono:antialias=false:size=15") +(set-frame-font "mono:size=15") (add-to-list 'default-frame-alist - '(font . "mono:antialias=false:size=15")) -(add-to-list 'default-frame-alist '(alpha 70 255)) + '(font . "mono:size=15")) +(add-to-list 'default-frame-alist '(alpha 70 255)) (set-frame-parameter (selected-frame) 'alpha '(70 255)) @@ -25,17 +23,15 @@ (require 'package) -(setq package-list '(ivy swiper counsel undo-tree)) +(setq package-list '(ivy swiper counsel)) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) -(unless package-archive-contents - (package-refresh-contents)) +(unless package-archive-contents (package-refresh-contents)) (dolist (package package-list) - (unless (package-installed-p package) - (package-install package))) + (unless (package-installed-p package) (package-install package))) ; --- core settings ------------------------------------------------------------ @@ -43,10 +39,10 @@ (setq echo-keystrokes 0.1 - inhibit-startup-message t ;Startup + inhibit-startup-message t initial-scratch-message nil - tab-always-indent 'complete) ;Supertab + tab-always-indent 'complete) (defalias 'display-startup-echo-area-message (lambda () (message "Emacs loaded in %s" (emacs-init-time)))) @@ -80,43 +76,15 @@ (show-paren-mode 1) -(require 'simple) -(add-hook 'text-mode-hook 'auto-fill-mode) - (require 'misc) (global-set-key (kbd "M-z") 'zap-up-to-char) (require 'eldoc) (add-hook 'prog-mode-hook 'eldoc-mode) -(require 'cua-rect) -(global-set-key (kbd "C-M-m") 'cua-rectangle-mark-mode) - -(require 'hippie-exp) -(global-set-key (kbd "M-/") 'hippie-expand) - (require 'doc-view) (setq doc-view-resolution 100) -(require 'ediff) -(setq ediff-window-setup-function 'ediff-setup-windows-plain) - -(require 'shr-color) -(setq shr-color-visible-luminance-min 70) - -(require 'browse-url) -(setq browse-url-browser-function 'eww-browse-url) - - -; --- linum -------------------------------------------------------------------- - -(require 'linum) - -(setq linum-format "%4d ") - -(add-hook 'prog-mode-hook 'linum-mode) -(add-hook 'text-mode-hook 'linum-mode) - ; --- ibuffer ------------------------------------------------------------------ @@ -214,8 +182,6 @@ (add-to-list 'eshell-visual-commands "alsamixer") (add-to-list 'eshell-visual-commands "cfdisk") -(global-set-key (kbd "C-c t") 'eshell) - (add-hook 'eshell-mode-hook 'eshell-smart-initialize) @@ -307,9 +273,6 @@ (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) -(global-set-key (kbd "C-c g") 'gnus) - - ; --- ivy ---------------------------------------------------------------------- (require 'ivy) @@ -322,12 +285,6 @@ (global-set-key (kbd "M-x") 'counsel-M-x) -; --- undo-tree ---------------------------------------------------------------- - -(require 'undo-tree) -(global-undo-tree-mode) - - ; ------------------------------------------------------------------------------ (provide 'init) diff --git a/.profile b/.profile @@ -25,13 +25,10 @@ export BROWSER='firefox' } -PS1='$( +PS1=' +$( error="$?" - - printf "\033[?6c" - printf "\033]0;%s\007" "$pwd" - printf "\n\033[0;1;30m%s\033[m" "$PWD/" - printf "%s" "$(git-status)" "${ABDUCO:+ $ABDUCO}" "${SSH_TTY:+ $(hostname)}" + printf "%s" "$PWD/" "$(git-status)" "${ABDUCO:+ $ABDUCO}" "${SSH_TTY:+ $(hostname)}" [ "$error" -gt 0 ] && printf " \033[1;31m%s\033[m" "$error" ) $ '