configurations: emacs
This commit is contained in:
parent
d3d3397c23
commit
3d1cc80150
|
@ -89,7 +89,7 @@ in {
|
|||
name = "Emacs";
|
||||
genericName = "Edytor tekstu";
|
||||
comment = "Edytuj tekst";
|
||||
exec = ''env COLORTERM=truecolor emacsclient -a "" -c %F'';
|
||||
exec = ''env COLORTERM=truecolor emacsclient -a "" -r -n %F'';
|
||||
icon = "emacs";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
|
@ -113,7 +113,7 @@ in {
|
|||
"x-scheme-handler/org-protocol"
|
||||
];
|
||||
actions.new-window = {
|
||||
exec = ''env COLORTERM=truecolor emacsclient -a "" -c %F'';
|
||||
exec = ''env COLORTERM=truecolor emacsclient -a "" -c -n %F'';
|
||||
name = "Nowe okno";
|
||||
};
|
||||
actions.no-daemon = {
|
||||
|
|
|
@ -164,7 +164,7 @@ in
|
|||
${lib.getExe pkgs.curl} -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | ${lib.getExe pkgs.python3}
|
||||
}
|
||||
${lib.optionalString config.materus.profile.editor.emacs.enable ''alias "e"="emacsclient -nw -c --alternate-editor= "''}
|
||||
|
||||
${lib.optionalString config.materus.profile.editor.emacs.enable ''alias "ee"="emacsclient -n -r --alternate-editor= "''}
|
||||
|
||||
|
||||
'' +
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
(unless (daemonp)
|
||||
(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes
|
||||
gc-cons-percentage 0.6)
|
||||
|
||||
|
||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||
(add-hook 'window-setup-hook
|
||||
(lambda ()
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#+TITLE: Materus Emacs Cfg
|
||||
#+AUTHOR: materus
|
||||
#+DESCRIPTION: materus emacs configuration
|
||||
#+STARTUP: showeverything
|
||||
#+STARTUP: overview
|
||||
#+PROPERTY: header-args :tangle etc/materus/emacs-config.el
|
||||
#+auto_tangle: t
|
||||
My emacs config, tangled file is [[file:etc/materus/emacs-config.el][there]]
|
||||
* Table of Contents :TOC_3:
|
||||
* Table of Contents :noexport:TOC_3:
|
||||
- [[#init-files][Init Files]]
|
||||
- [[#early-init][Early Init]]
|
||||
- [[#init][Init]]
|
||||
|
@ -61,8 +61,6 @@ Early init file, setting for GC and some paths.
|
|||
(unless (daemonp)
|
||||
(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes
|
||||
gc-cons-percentage 0.6)
|
||||
|
||||
|
||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||
(add-hook 'window-setup-hook
|
||||
(lambda ()
|
||||
|
@ -125,11 +123,12 @@ After some testing default package manager works best for me.
|
|||
(require 'cl-lib)
|
||||
(require 'package)
|
||||
(setq package-user-dir (concat user-emacs-directory "var/elpa/" emacs-version "/" ))
|
||||
(setq package-gnupghome-dir (concat user-emacs-directory "var/elpa/gnupg/" ))
|
||||
(add-to-list 'package-archives '("nongnu-devel" . "https://elpa.nongnu.org/nongnu-devel/"))
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
|
||||
#+end_src
|
||||
#+end_src
|
||||
** Packages
|
||||
Packages to install
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -226,6 +225,9 @@ Packages to install
|
|||
empv
|
||||
volatile-highlights
|
||||
highlight
|
||||
elfeed
|
||||
elfeed-goodies
|
||||
drag-stuff
|
||||
)
|
||||
"A list of packages to ensure are installed at launch.")
|
||||
|
||||
|
@ -270,7 +272,6 @@ Graphical related settings.
|
|||
#+end_src
|
||||
*** Misc
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(setq frame-inhibit-implied-resize t)
|
||||
(setq frame-resize-pixelwise t)
|
||||
(setq window-resize-pixelwise t)
|
||||
|
@ -288,7 +289,11 @@ Graphical related settings.
|
|||
(setq read-process-output-max (* 1024 1024 3))
|
||||
(setq ring-bell-function 'ignore)
|
||||
(setq-default cursor-type '(bar . 1))
|
||||
|
||||
;; Rainbow mode
|
||||
(use-package rainbow-mode
|
||||
:hook
|
||||
((org-mode . rainbow-mode)
|
||||
(prog-mode . rainbow-mode)))
|
||||
|
||||
;; Delimiters
|
||||
(use-package rainbow-delimiters :hook
|
||||
|
@ -315,7 +320,6 @@ Graphical related settings.
|
|||
(when (= (seq-count #'buffer-file-name (buffer-list)) 0)
|
||||
(apply orig-fun args)))
|
||||
(advice-add 'display-startup-screen :around #'startup-screen-advice) ; Hide startup screen if started with file
|
||||
|
||||
#+end_src
|
||||
*** Dashboard
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -338,12 +342,11 @@ Graphical related settings.
|
|||
:hook (after-init . doom-modeline-mode)
|
||||
:config
|
||||
(setq doom-modeline-icon t)
|
||||
(setq display-time-24hr-format t)
|
||||
(setq display-time-24hr-format t)'
|
||||
(display-time-mode 1))
|
||||
|
||||
(use-package minions
|
||||
:hook (after-init . minions-mode))
|
||||
|
||||
#+end_src
|
||||
** Org-mode
|
||||
Org mode settings
|
||||
|
@ -412,6 +415,7 @@ Other configs
|
|||
#+begin_src emacs-lisp
|
||||
(electric-pair-mode 1)
|
||||
(electric-indent-mode -1)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(setq-default buffer-file-coding-system 'utf-8-dos)
|
||||
#+end_src
|
||||
*** Elcord
|
||||
|
@ -541,7 +545,6 @@ Other configs
|
|||
(keymap-set cua--cua-keys-keymap "C-z" 'undo-tree-undo)
|
||||
(keymap-set cua--cua-keys-keymap "C-y" 'undo-tree-redo)
|
||||
|
||||
|
||||
(keymap-set global-map "C-<iso-lefttab>" #'indent-rigidly-left-to-tab-stop)
|
||||
(keymap-set global-map "C-<tab>" #'indent-rigidly-right-to-tab-stop)
|
||||
|
||||
|
@ -571,4 +574,3 @@ Just for testing some code
|
|||
|
||||
|
||||
#+end_src
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
(require 'cl-lib)
|
||||
(require 'package)
|
||||
(setq package-user-dir (concat user-emacs-directory "var/elpa/" emacs-version "/" ))
|
||||
(setq package-gnupghome-dir (concat user-emacs-directory "var/elpa/gnupg/" ))
|
||||
(add-to-list 'package-archives '("nongnu-devel" . "https://elpa.nongnu.org/nongnu-devel/"))
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
|
@ -107,6 +108,9 @@
|
|||
empv
|
||||
volatile-highlights
|
||||
highlight
|
||||
elfeed
|
||||
elfeed-goodies
|
||||
drag-stuff
|
||||
)
|
||||
"A list of packages to ensure are installed at launch.")
|
||||
|
||||
|
@ -156,7 +160,11 @@
|
|||
(setq read-process-output-max (* 1024 1024 3))
|
||||
(setq ring-bell-function 'ignore)
|
||||
(setq-default cursor-type '(bar . 1))
|
||||
|
||||
;; Rainbow mode
|
||||
(use-package rainbow-mode
|
||||
:hook
|
||||
((org-mode . rainbow-mode)
|
||||
(prog-mode . rainbow-mode)))
|
||||
|
||||
;; Delimiters
|
||||
(use-package rainbow-delimiters :hook
|
||||
|
@ -201,7 +209,7 @@
|
|||
:hook (after-init . doom-modeline-mode)
|
||||
:config
|
||||
(setq doom-modeline-icon t)
|
||||
(setq display-time-24hr-format t)
|
||||
(setq display-time-24hr-format t)'
|
||||
(display-time-mode 1))
|
||||
|
||||
(use-package minions
|
||||
|
@ -258,6 +266,7 @@
|
|||
|
||||
(electric-pair-mode 1)
|
||||
(electric-indent-mode -1)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(setq-default buffer-file-coding-system 'utf-8-dos)
|
||||
|
||||
(defun materus/elcord-toggle (&optional _frame)
|
||||
|
@ -354,7 +363,6 @@
|
|||
(keymap-set cua--cua-keys-keymap "C-z" 'undo-tree-undo)
|
||||
(keymap-set cua--cua-keys-keymap "C-y" 'undo-tree-redo)
|
||||
|
||||
|
||||
(keymap-set global-map "C-<iso-lefttab>" #'indent-rigidly-left-to-tab-stop)
|
||||
(keymap-set global-map "C-<tab>" #'indent-rigidly-right-to-tab-stop)
|
||||
|
||||
|
|
Loading…
Reference in New Issue