Giter Site home page Giter Site logo

emacs's Introduction

Config

My custom emacs config

Project

Emacs Keybindings

  • C-g - keyboard quit, useful for quitting long running processes, similar to how ESC works

Links

TODOs

PROJ Can this be tangled into an init.el using org-babel rather than using nix parsing

Could also be used to directly construct the default.el to avoid any nix parsing

Run org-babel-tangle as an executable script through emacs

Put the tangled init.el file in a home-manager module such that it is correctly created

For testing purposes write a script which uses –init-directory under /tmp and symlink the init.el

IDEA Repurpose this repo as part of my emacs notes

IDEA Enable a custom.[org|el] for defining experimental behaviour which is loaded from the user directory

General Configuration

User Interface

Remove unneccessary UI elements for a minimal look and feel

(setq inhibit-startup-message t)

(scroll-bar-mode 1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(menu-bar-mode -1)

(setq visible-bell t)

Fonts

(set-face-attribute 'default nil :font "Iosevka NFM" :height 120)

Inject on a home-module basis

Theme

(load-theme 'tango-dark)

Use-package

Packages are always defined by the nix package manager so we should never have any remote fetching

(setq use-package-always-ensure t)

Is there a way to stifle use-package such that the emacs process can never fetch remote repositories?

User and System Configuration

Defaults for users name and email

(setq user-full-name "Patrick H Morris"
      user-mail-address "[email protected]")
;; (defvar my-laptop-p (equal (system-name) "sacha-x220"))
;; (defvar my-server-p (and (equal (system-name) "localhost") (equal user-login-name "sacha")))
;; (defvar my-phone-p (not (null (getenv "ANDROID_ROOT")))
;;   "If non-nil, GNU Emacs is running on Termux.")
;; (when my-phone-p (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
;; (global-auto-revert-mode)  ; simplifies syncing

Configure here a way to inject system configuration structure through home-manager

Evil

Evil is a vim emulation layer built into emacs enabling common vim motions. Documentation can be found here.

(use-package evil
  :config
  (evil-mode 1))

General.el

General.el is intended, like use-package is for packages, a convenient, unified mechanism for managing keybindings.

(defconst leader "SPC")

;; (use-package general
;;     :config
;;      (general-create-definer leader
;;         :prefix leader)
;;      (leader
;;       "a" 'org-agenda))

Which-key

(use-package which-key
   :config
    (which-key-mode))

Utilities

This section is just for helpful functions which should be prefixed with my/ in order to separate from normal elisp functions

emacs's People

Contributors

padraic-o-mhuiris avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.