From 76ee161752297ecd0dc88ddef3287ccdacddb3f4 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 29 Apr 2021 19:21:23 -0500 Subject: [PATCH] Minor edits. --- .config/doom/config.el | 5 +++-- .config/doom/config.org | 12 ++++++++++-- .xmonad/README.org | 3 ++- .xmonad/xmonad.hs | 22 +++------------------- 4 files changed, 18 insertions(+), 24 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index aff37c7..3ed0971 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -239,6 +239,8 @@ (after! mastodon (setq mastodon-instance-url "https://distrotoot.com")) +(xterm-mouse-mode 1) + (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e") ;;(require 'smtpmail) (setq user-mail-address "derek@distrotube.com" @@ -378,8 +380,7 @@ "DONE(d)" ; Task has been completed "CANCELLED(c)" )))) ; Task has been cancelled -(use-package ox-man - :ensure nil) +(use-package ox-man) (map! :leader (:prefix ("r" . "registers") diff --git a/.config/doom/config.org b/.config/doom/config.org index 7e468f9..e2446e0 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -27,6 +27,7 @@ - [[#ivy-keybindings][IVY KEYBINDINGS]] - [[#line-settings][LINE SETTINGS]] - [[#mastodon][MASTODON]] +- [[#mouse-support][MOUSE SUPPORT]] - [[#mu4e][MU4E]] - [[#setting-up-environment-with-main-account][Setting Up Environment With Main Account]] - [[#setting-up-multiple-accounts][Setting Up Multiple Accounts]] @@ -449,6 +450,13 @@ Mastodon.el is a mastodon client for Emacs. Note that I wrapped my settings wit (setq mastodon-instance-url "https://distrotoot.com")) #+END_SRC +* MOUSE SUPPORT +Adding mouse support in the terminal version of Emacs. + +#+begin_src emacs-lisp +(xterm-mouse-mode 1) +#+end_src + * MU4E Setting up mu4e which is an email client that works within emacs. You must install mu4e and mbsync through your Linux distribution's package manager. Setting up smtp for sending mail. Make sure the gnutls command line utils are installed. Package 'gnutls-bin' in Debian/Ubuntu, and 'gnutls' in Arch. @@ -639,9 +647,9 @@ Note that I wrapped most of this in (after! org). Without this, my settings mig "CANCELLED(c)" )))) ; Task has been cancelled #+END_SRC +We need ox-man for "Org eXporting" to manpage format. #+BEGIN_SRC emacs-lisp -(use-package ox-man - :ensure nil) +(use-package ox-man) #+END_SRC * REGISTERS diff --git a/.xmonad/README.org b/.xmonad/README.org index a5a1949..ca367ff 100644 --- a/.xmonad/README.org +++ b/.xmonad/README.org @@ -451,7 +451,8 @@ myKeys = -- Other Dmenu Prompts -- In Xmonad and many tiling window managers, M-p is the default keybinding to -- launch dmenu_run, so I've decided to use M-p plus KEY for these dmenu scripts. - , ("M-p c", spawn "dcolors") -- pick color from our scheme + , ("M-p a", spawn "dmsounds") -- pick color from our scheme + , ("M-p c", spawn "dmcolors") -- pick color from our scheme , ("M-p e", spawn "dmconf") -- edit config files , ("M-p i", spawn "dmscrot") -- screenshots (images) , ("M-p k", spawn "dmkill") -- kill processes diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index e0e6290..cbc1b18 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -6,7 +6,7 @@ import System.Exit (exitSuccess) import qualified XMonad.StackSet as W -- Actions -import XMonad.Actions.CopyWindow (kill1, killAllOtherCopies, copyWindow) +import XMonad.Actions.CopyWindow (kill1) import XMonad.Actions.CycleWS (Direction1D(..), moveTo, shiftTo, WSType(..), nextScreen, prevScreen) import XMonad.Actions.GridSelect import XMonad.Actions.MouseResize @@ -305,23 +305,6 @@ myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [1..] -- (,) == \x y clickable ws = ""++ws++"" where i = fromJust $ M.lookup ws myWorkspaceIndices --- 'doCopy' copies the managed window into another workspace. --- If you use this feature then you need to change your kill keybinding --- from kill1 to killAllOtherCopies <+> kill1 --- I personally have two different keybindings, one for killing only copies, one for killing all of them. -doCopy :: WorkspaceId -> ManageHook -doCopy m = ask >>= \w -> doF (copyWindow w m) - --- 'doCopyToAll' simply copies managed window into the all workspaces. --- Since scracthpads and dynamic workspaces are not presented in the 'myWorkspaces' --- they will not be affected. I personally use this feature for my webcam. --- , title =? "video - mpv" --> doFloat <+> doCopyToAll --- If you use this feature then you need to change your kill keybinding --- from kill1 to killAllOtherCopies <+> kill1 --- I personally have two different keybindings, one for killing only copies, one for killing all of them. -doCopyToAll :: ManageHook -doCopyToAll = foldr (\w rest -> doCopy (w) <+> rest) (doCopy (myWorkspaces !! 1)) myWorkspaces - myManageHook :: XMonad.Query (Data.Monoid.Endo WindowSet) myManageHook = composeAll -- 'doFloat' forces a window to float. Useful for dialog boxes and such. @@ -362,7 +345,8 @@ myKeys = -- Other Dmenu Prompts -- In Xmonad and many tiling window managers, M-p is the default keybinding to -- launch dmenu_run, so I've decided to use M-p plus KEY for these dmenu scripts. - , ("M-p c", spawn "dcolors") -- pick color from our scheme + , ("M-p a", spawn "dmsounds") -- pick color from our scheme + , ("M-p c", spawn "dmcolors") -- pick color from our scheme , ("M-p e", spawn "dmconf") -- edit config files , ("M-p i", spawn "dmscrot") -- screenshots (images) , ("M-p k", spawn "dmkill") -- kill processes