removed `install' abbreviation, emacsclient now launched in GUI when possible, fixed org title

This commit is contained in:
Phuntsok Drak-pa 2019-11-03 12:43:01 +01:00
parent d285729d66
commit f1d40e2b1c
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 6 additions and 13 deletions

View File

@ -1,4 +1,4 @@
#+TITLE: Phundraks dotfiles #+TITLE: Phundraks fish config
#+AUTHOR: Lucien "Phundrak” Cartier-Tilet #+AUTHOR: Lucien "Phundrak” Cartier-Tilet
#+EMAIL: phundrak@phundrak.fr #+EMAIL: phundrak@phundrak.fr
#+OPTIONS: H:4 broken_links:mark email:t ^:{} auto-id:t #+OPTIONS: H:4 broken_links:mark email:t ^:{} auto-id:t
@ -155,11 +155,11 @@
set -gx SUDO_ASKPASS ~/.local/bin/askpass set -gx SUDO_ASKPASS ~/.local/bin/askpass
#+END_SRC #+END_SRC
Now, lets declare our editor of choice, EmacsClient. Now, we want it to run Now, lets declare our editor of choice, EmacsClient; not Emacs itself since
in the terminal, since it will most often be just quick edits, nothing too it will most often be just quick edits, nothing too heavy, if it is called
heavy, if it is called from the =EDITOR= variable (from Git, for example). from the =EDITOR= variable (from Git, for example).
#+BEGIN_SRC fish #+BEGIN_SRC fish
set -gx EDITOR emacsclient -c -nw set -gx EDITOR emacsclient -c
#+END_SRC #+END_SRC
Finally, some development packages require the =PKG_CONFIG_PATH= to be set, Finally, some development packages require the =PKG_CONFIG_PATH= to be set,
@ -234,11 +234,6 @@
abbr remove 'sudo pacman -Rscnd' abbr remove 'sudo pacman -Rscnd'
#+END_SRC #+END_SRC
And if I want to install something, I just have to type =install=.
#+BEGIN_SRC fish
abbr install 'sudo pacman -Sy'
#+END_SRC
But if I just want to run =pacman= as sudo, then I could always just type But if I just want to run =pacman= as sudo, then I could always just type
=p=. =p=.
#+BEGIN_SRC fish #+BEGIN_SRC fish

View File

@ -21,7 +21,7 @@ set -gx PATH $HOME/.local/bin $HOME/go/bin $HOME/.cargo/bin $PATH
set -gx SUDO_ASKPASS ~/.local/bin/askpass set -gx SUDO_ASKPASS ~/.local/bin/askpass
set -gx EDITOR emacsclient -c -nw set -gx EDITOR emacsclient -c
set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH
@ -42,8 +42,6 @@ abbr psmem10 'ps auxf | sort -nr -k 4 | head -10'
abbr remove 'sudo pacman -Rscnd' abbr remove 'sudo pacman -Rscnd'
abbr install 'sudo pacman -Sy'
abbr p 'sudo -A pacman' abbr p 'sudo -A pacman'
abbr purge 'yay -Sc' abbr purge 'yay -Sc'