Skip to content

Instantly share code, notes, and snippets.

@seungjin
Last active August 26, 2024 09:28
Show Gist options
  • Save seungjin/ce4a1129ab2ab556ff5728f4e58cd722 to your computer and use it in GitHub Desktop.
Save seungjin/ce4a1129ab2ab556ff5728f4e58cd722 to your computer and use it in GitHub Desktop.
emacs config for emacs-nw
# Ignore everything
*
# But not these files...
!.gitignore
!init.el
!LICENSE
;;; emacs no window
;;; Instll: `git clone https://gist.github.com/ce4a1129ab2ab556ff5728f4e58cd722.git ~/.emacs.d`
;;; There is Emacs with no window: nw or nox
;;; Fedora: `dnf install emacs-nw`
;;; Debian: `apt install emacs-nox`
;;; Focusing on fast start time
;;; No extra plugin need. No melpa, No elpa, No git download
(setq inhibit-startup-screen t)
(menu-bar-mode 0) ;;; Hide menu bar
;;(tool-bar-mode 0) ;;; Hide tool bar. Does not need for emacs-nw
;;(scroll-bar-mode 0) ;;; Hide scroll bar. Does not need for emacs-nw
(setq column-number-mode t) ;;; Column number
(global-display-line-numbers-mode 1)
(setq display-line-numbers-type 'relative)
(global-font-lock-mode -1) ;;; no color
;; backup
(setq make-backup-files t
backup-by-copying t
backup-directory-alist `(("." . "~/.emacs.d/backups"))
delete-old-versions t
backup-by-copying t
version-control t
delete-old-versions t
delete-by-moving-to-trash t
kept-old-versions 6
kept-new-versions 9
)
(setq vc-make-backup-files t)
(setq vc-follow-symlinks t)
MIT License
Copyright (c) 2024 Seungjin Kim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment