요즘 emacs나 vi에디터를 많이 쓰면서 control키를 새끼 손가락으로 누르는 일이 많아졌다.

보통의 키보드에는 control키가 왼쪽 아래 존재하다 보니 새끼 손가락이 많이 무리가 간다.

 

옛날의 unix키보드처럼 배열을 바꿔서 사용해보려고 한다.

 

# 먼저 아래 파일을 Editor로 연다.
$ sudo vi /etc/default/keyboard

# XKBOPTIONS을 찾아 ctrl:nocaps를 써서 Caps Lock키를 추가적으로 Control키로 사용하도록 한다.
# 또는 ctrl:swapcaps를 써서 Caps Lock키와 Control키의 기능을 바꾼다.

XKBOPTIONS="ctrl:nocaps"

# 다음으로 변경된 내용이 반영되도록 아래 명령어를 실행한다.
$sudo dpkg-reconfigure keyboard-configuration

 

./configure --with-features=huge --enable-cscope --enable-multibyte --enable-python3interp --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-fail-if-missing
make
sudo make install

Fisa Vim Config (http://fisadev.github.io/fisa-vim-config/)

sudo apt-get install curl vim exuberant-ctags git ack-grep
sudo pip install pep8 flake8 pyflakes isort yapf

mv ~/.vimrc ~/.vimrc.org
wget -O ~/.vimrc  https://raw.github.com/fisadev/fisa-vim-config/master/.vimrc 

 

1. Neovim을 설치한다.

2. Nvim의 fisa-dev를 설정한다.

    http://nvim.fisadev.com/

 

Fisa-nvim-config by fisadev

This is my personal NeoVim configuration, built according to my personal preferences, without any justification to think it's the best possible vim configuration. If you like it, great! :) It's mainly oriented to python software development, but many of it

nvim.fisadev.com

3. coc-nvim (intellisense plugin)을 설치한다.

    가. Node.js설치       

curl -sL install-node.now.sh/lts | sudo bash

    나.  Yarn 설치

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

   다. VIM Plugin설치    

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

   라. ~/.config/nvim/init.vim에 아래 내용 추가

call plug#begin('~/.config/nvim/plugged')
" Use release branch
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Or latest tag
Plug 'neoclide/coc.nvim', {'tag': '*', 'branch': 'release'}
" Or build from source code by use yarn: https://yarnpkg.com
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()

 

   마. nvim실행후 coc 모듈 설치

        :CocInstall coc-json

        :CocInstall coc-python

        :CocInstall coc-pypl

   바.  ./config/nvim/coc-settings.json 파일에 Python language server설정 추가

{
  "languageserver": {
      "golang": {
            "command": "gopls",
            "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
            "filetypes": ["go"]
          },
      "ccls": {
            "command": "ccls",
            "filetypes": ["c", "cpp", "objc", "objcpp"],
            "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
            "initializationOptions": {
                     "cache": {
                                "directory": "/tmp/ccls"
                              }
                   }
           },
      "python": {
         "command": "python",
         "args": [
              "-mpyls",
              "-vv",
              "--log-file",
              "/tmp/lsp_python.log"
            ],
         "trace.server": "verbose",
         "filetypes": [
              "python"
            ],
         "settings": {
              "pyls": {
                     "enable": true,
                     "trace": {
                              "server": "verbose"
                            },
                     "commandPath": "",
                     "configurationSources": [
                              "pycodestyle"
                            ],
                     "plugins": {
                              "jedi_completion": {
                                         "enabled": true
                                       },
                              "jedi_hover": {
                                         "enabled": true
                                       },
                              "jedi_references": {
                                         "enabled": true
                                       },
                              "jedi_signature_help": {
                                         "enabled": true
                                       },
                              "jedi_symbols": {
                                         "enabled": true,
                                         "all_scopes": true
                                       },
                              "mccabe": {
                                         "enabled": true,
                                         "threshold": 15
                                       },
                              "preload": {
                                         "enabled": true
                                       },
                              "pycodestyle": {
                                         "enabled": true
                                       },
                              "pydocstyle": {
                                         "enabled": false,
                                         "match": "(?!test_).*\\.py",
                                         "matchDir": "[^\\.].*"
                                       },
                              "pyflakes": {
                                         "enabled": true
                                       },
                              "rope_completion": {
                                         "enabled": true
                                       },
                              "yapf": {
                                         "enabled": true
                                      }
                           }
                  }
           }
      }
    }
}

4. nvim default editor설정

sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi 
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 
sudo $ update-alternatives --config vim 
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor

 

1. Linux Outliner (Windows도 가능)

https://www.giuspen.com/cherrytree/#downl

  1. Install wget and Cherrytree dependencies.

  2.  

    sudo apt install wget python-dbus python-chardet python-enchant libcanberra-gtk-module libgtksourceview2.0-0 libgtksourceview2.0-common python-cairo python-gobject-2 python-gtk2 python-numpy

  3. Download python-gtksourceview2.

    wget http://ftp.br.debian.org/debian/pool/main/p/pygtksourceview/python-gtksourceview2_2.10.1-3_amd64.deb

  4. Install python-gtksourceview2.

    sudo dpkg -i python-gtksourceview2_2.10.1-3_amd64.deb

  5. Download Cherrytree.

    wget http://www.giuspen.com/software/cherrytree_0.38.9-0_all.deb

  6. Install Cherrytree.

    sudo dpkg -i cherrytree_0.38.9-0_all.deb

 

cherrytree – giuspen

A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file. Written by Giuseppe Penone (aka giuspen). The user manual online html and downloadable ctb written and maintained by Ellie Bor

www.giuspen.com

https://stackedit.io/app

 

 

StackEdit

 

stackedit.io

 

 

StackEdit

 

stackedit.io

https://www.tagspaces.org/

 

TagSpaces - Your versatile file organizer

TagSpaces is an open source platform for personal data management. With TagSpaces you can manage and organize the files and folders on your pc, mac or smart phone.

www.tagspaces.org

https://joplinapp.org/

 

Joplin - an open source note taking and to-do application with synchronisation capabilities

Hacktoberfest 🎃 is back this year again for our great pleasure ^^ To participate go to https://hacktoberfest.digitalocean.com/, log in (with you GitHub account) and you are ready to get in. Next, go dive into the Joplin issues list labelled "Hacktoberfest"

joplinapp.org

2. Albert

맥의 알프레드와 같은 역할을 한다.

Ctrl + tab키로 단축키를 지정해놓으면 편리하다.

https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert

 

Install package home:manuelschneid3r / albert

Packages for xUbuntu 19.10: albert_0.16.1_amd64.deb

software.opensuse.org

3. 한글폰트 설정

나눔글꼴

$ sudo apt install fonts-nanum

나눔고딕 코딩체

$ sudo apt install fonts-nanum-coding

 

4. shutter (Capture 프로그램)

sudo add-apt-repository ppa:linuxuprising/shutter

sudo apt install shutter

sudo apt remove --auto-remove shutter

 

4. Hangul Input Method

https://nimf-i18n.gitlab.io/ko/installation/

sudo apt-add-repository ppa:hodong/nimf -y

sudo apt update

sudo apt-get install im-config zenity

sudo apt install nimf nimf-libhangul -y

im-config -n nimf

 

5. Notebook Battery Saving

sudo add-apt-repository ppa:linrunner/tlpsudo

apt-get updatesudo

apt-get install tlp tlp-rdw

(씽크패드 유저라면 아래 내용 추가)sudo apt-get install tp-smapi-dkms acpi-call-dkms

 

6. ZSH Theme설정

powerlevel10k

https://github.com/romkatv/powerlevel10k

 

romkatv/powerlevel10k

A fast reimplementation of Powerlevel9k ZSH theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

 

7. XFCE Terminal Theme

https://www.maketecheasier.com/best-xfce-terminal-themes/

 

5 XFCE Terminal Themes You Should Try - Make Tech Easier

There are numerous ways to spruce up the XFCE terminal. For those who want to tweak their terminal, here are five great XFCE terminal themes to check out.

www.maketecheasier.com

https://github.com/nthirtyone/mariana-scheme

 

nthirtyone/mariana-scheme

Colour scheme from ST3 for XFCE4 Terminal. Contribute to nthirtyone/mariana-scheme development by creating an account on GitHub.

github.com


8. emacs최신버전(28버전)설치

Repository를 추가 한다.

[28버전]

sudo add-apt-repository ppa:ubuntu-elisp/ppa 
sudo apt-get update 
sudo apt install emacs-snapshot

[25버전]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs25

[26버전]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs26

[기본 에디터 변경]

sudo update-alternatives --config emacs

user@user-desktop:~$ update-alternatives --config emacs
There are 2 choices for the alternative emacs (providing /usr/bin/emacs).

  Selection    Path                     Priority   Status
------------------------------------------------------------
  0            /usr/bin/emacs-snapshot   27        auto mode
* 1            /usr/bin/emacs-snapshot   27        manual mode
  2            /usr/bin/emacs24-x        27        manual mode

+ Recent posts