Code Monkey home page Code Monkey logo

iqa's Introduction

Init file(and directory) Quick Access.

https://melpa.org/packages/iqa-badge.svg

Trivia

Sadly, Emacs (unlike Spacemacs, which has spacemacs/find-dotfile) doesn’t have a function to open its own init file, so thousands of users have to write their owns. I’m not different :)

Installation

Using use-package:

(use-package iqa
  ;; use this if your config is generated from org file
  ;; :custom
  ;; (iqa-user-init-file (concat user-emacs-directory "README.org") "Edit README.org by default.")
  ;; bind iqa functions to shortcuts
  :bind (:map ctl-x-map
              ("M-f" . iqa-find-user-init-file)
              ("M-c" . iqa-find-user-custom-file)
              ("M-r" . iqa-reload-user-init-file)
              ("M-d" . iqa-find-user-init-directory))
  ;; :config
  ;; (iqa-add-bookmarks) — to add bookmarks to emacs init files
  ;; (iqa-setup-default) - to bind default bindings
  )

or just put iqa.el to load-path and

(require 'iqa)
(iqa-setup-default)

Info

iqa-find-user-init-file is a shorthand to open user init file. By default user-init-file is used. If your configuration is generated from org-mode source you may want to point it to your org file.

(setq iqa-user-init-file (concat user-emacs-directory "init.org"))

File is opened by find-file but you can redefine it by e.g.

(setq iqa-find-file-function #'find-file-other-window)

iqa-reload-user-init-file reloads user-init-file (not iqa-user-init-file)

For a full restart take a look at restart-emacs package.

iqa-find-user-init-directory opens init file directory

iqa-setup-default defines keybindings:

C-x M-fiqa-find-user-init-file

C-x M-ciqa-find-user-custom-file

C-x M-riqa-reload-user-init-file

C-x M-diqa-find-user-init-directory

If you don’t like these, or prefer to use Emacs bookmarks instead, iqa-add-bookmarks adds bookmarks to these files.

iqa's People

Contributors

a13 avatar

Watchers

Jonas Bernoulli avatar James Cloos avatar  avatar

Forkers

dovlan

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.