Add modeline config

This commit is contained in:
Wojciech Kozlowski 2018-02-11 22:34:08 +00:00
parent 77c070fc3a
commit 88eec477d9
3 changed files with 51 additions and 15 deletions

35
init.el
View File

@ -15,6 +15,15 @@
(let ((gc-cons-threshold most-positive-fixnum))
;; --------------------------------------------------------------------------
;; Initialise and setup `package'.
;; --------------------------------------------------------------------------
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;; --------------------------------------------------------------------------
;; Visual configuration.
;; --------------------------------------------------------------------------
@ -42,11 +51,6 @@
(menu-bar-mode -1)
(blink-cursor-mode -1)
;; Modeline -----------------------------------------------------------------
(size-indication-mode 1)
(column-number-mode 1)
;; Theme --------------------------------------------------------------------
;; Add the necessary paths.
@ -56,6 +60,17 @@
;; Load the dark theme by default.
(load-theme 'havoc-dark t) ;; Load personal theme
;; Modeline -----------------------------------------------------------------
(size-indication-mode 1)
(column-number-mode 1)
;; TODO figure out how to deal with powerline not being installed by default
(use-package powerline
:ensure t
:init
(powerline-default-theme))
;; --------------------------------------------------------------------------
;; Change file in which custom variable changes are saved.
;; --------------------------------------------------------------------------
@ -77,15 +92,6 @@
;; *********************************************************************** ;;
;; --------------------------------------------------------------------------
;; Initialise and setup `package'.
;; --------------------------------------------------------------------------
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;; --------------------------------------------------------------------------
;; Load `emodule'.
;; --------------------------------------------------------------------------
@ -103,6 +109,7 @@
files
helm
helm-gtags
modeline
org
parentheses
programming

30
modules/modeline.el Normal file
View File

@ -0,0 +1,30 @@
;;; modeline.el --- Module file for configuring the modeline.
;;
;; Copyright (C) 2018 Wojciech Kozlowski
;;
;; Author: Wojciech Kozlowski <wk@wojciechkozlowski.eu>
;; Created: 11 Feb 2018
;;
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;; This module is used for configuring the modeline.
;;
;;; License: GPLv3
;;; Required packages:
(setq emodule/modeline-packages
'(powerline)
)
;;; Configuration:
(defun emodule/modeline-init ()
)

View File

@ -35,5 +35,4 @@
:bind
(("C-c z z" . (lambda () (interactive) (workgroups-mode)))))
)