Explorar el Código

~/.config/dwm: Use emacsclient

The first startup might be a little slower, but everything after that is
instantaneous.  Really neat!

(It seems I'm using emacs for writing now, and vim for most code
editing.  A little strange, but okay. :)
Lucas Stadler %!s(int64=9) %!d(string=hace) años
padre
commit
004ec6071b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      .config/dwm/config.h

+ 3 - 1
.config/dwm/config.h

@ -66,7 +66,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
66 66
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
67 67
static const char *termcmd[]  = { "/usr/bin/sakura", NULL };
68 68
69
static const char *editorcmd[] = { "emacs", NULL };
69
static const char *editorcmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", NULL };
70
static const char *writecmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", "--eval", "(find-recent-notes)", NULL };
70 71
71 72
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
72 73
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
@ -113,6 +114,7 @@ static Key keys[] = {
113 114
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
114 115
115 116
	{ MODKEY,                       XK_e,      spawn,          { .v = editorcmd } },
117
	{ MODKEY,                       XK_w,      spawn,          { .v = writecmd } },
116 118
117 119
	{ 0,                            XF86XK_AudioLowerVolume, spawn, { .v = volumedowncmd } },
118 120
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },