From a328f311fd6b0fc7bb18bf988ac64ee618da20bf Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 17 Mar 2020 21:45:17 +0300 Subject: [PATCH] Update modules/applications/emacs/default.nix modules/applications/emacs/init.el --- modules/applications/emacs/default.nix | 1 + modules/applications/emacs/init.el | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/applications/emacs/default.nix b/modules/applications/emacs/default.nix index cb24aa4..716f583 100644 --- a/modules/applications/emacs/default.nix +++ b/modules/applications/emacs/default.nix @@ -39,6 +39,7 @@ arduino-mode elixir-mode company-box + ws-butler ]; }; diff --git a/modules/applications/emacs/init.el b/modules/applications/emacs/init.el index 6bfafd3..8bd5c03 100755 --- a/modules/applications/emacs/init.el +++ b/modules/applications/emacs/init.el @@ -35,7 +35,7 @@ ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) (add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) - + (add-to-list 'package-archives '("cselpa" . "https://elpa.thecybershadow.net/packages/")) (when (< emacs-major-version 24) ;; For important compatibility libraries like cl-lib @@ -76,6 +76,11 @@ (require 'gud-lldb) +(use-package ws-butler + :config + (ws-butler-global-mode) + ) + (use-package auto-indent-mode :config (auto-indent-global-mode)) @@ -93,7 +98,7 @@ :config (xah-fly-keys-set-layout "qwerty") (xah-fly-keys 1) - + (defun xah-fly-keys-russian-on () "Add Russian layout keys. Hook function for `xah-fly-command-mode-activate-hook' @@ -273,7 +278,7 @@ If point was already at that position, move point to beginning of line." :compile "nix-build shell.nix" :run "nix-shell") (setq projectile-project-search-path '("~/projects/")) - + (global-set-key (kbd "") 'projectile-compile-project) (global-set-key (kbd "") 'projectile-run-project))