github ssh 配置 Emacs 安裝與配置

2021-10-11 08:46:23 字數 2907 閱讀 6626

在**中管理文獻,即在最終的**中管理文獻。
如何總結和整理學術文獻?​www.zhihu.com

於是我也開始關注org-mode 這一神器。我是個程式設計小白,這也阻擋不了我愛折騰的心。倒騰了一周,總算把emacs安裝配置好了,乙個得瑟,回知乎獻個醜,也希望和我一樣的程式設計小白能少走一點彎路。

引用org-mode入門教程 - garfielder007 - 的資源:

陳斌同志給出了他學習emacs的攻略,我覺得非常有用,故推薦給大家。在這一攻略裡,他強烈推薦emacs小白在emacs學習中緊跟著大牛(如世界級大師 steve purcell的emacs 配置)走,在大牛的肩膀上摸索適合自己的配置。所以下面是copy世界級大師 steve purcell的emacs 配置的攻略。

一年成為emacs高手(像神一樣使用編輯器)​blog.csdn.net

1. github的安裝

2)生成乙個.ssh金鑰。

安裝完github後,根據github的幫助生成.ssh 金鑰。connecting to github with ssh

檢視是否已經有了ssh金鑰:is -al ~/.ssh(如果沒有金鑰則不會有此資料夾,有則備份刪除. )

生成金鑰: ssh-keygen -t rsa -b 4096 -c 「你的郵箱位址」然後會輸入兩次密碼最後生成兩個預設檔案id_rsa id_rsa.pub(你輸入密碼時電腦沒有任何反應,不用懷疑,輸入就是了~)

在github上新增ssh金鑰,這要新增的是「d_rsa.pub」裡面的公鑰 「account" > "settings」 > click 「ssh and gpg keys」 > click 「new ssh key」 。

測試:ssh

在git bash中輸入以下**:

git config --global user.name "user_name"

git config --global user.email ×××@×××.com

add your public key

mkdir project_name

cd project_name

git init

touch readme

git add readme

git commit -m 'first commit'

git remote add origin [email protected]:user_name/project_name.git

git push -u origin master

最後出現類似下面的語句算是完成啦~

在git bash中輸入

4)修改 init.el

用記事本開啟init.el檔案,在以下幾行前面加上分號";"將它們注釋掉(為了之後不報錯)。

(require 'init-git)

(require 'init-github)

(require 'server)

(unless (server-running-p)

(server-start))

修改完後執行 test-startup.sh

以上幾行是參考了fa nfan4569 和bluefivecn的,不過改了後還是報了2個錯。有心的同志看看是什麼 問題,見下圖。

當然,這是後話,網上的攻略都是到這一步就完成配置了,可是我的emacs 一點動靜都沒有!(哭唧唧)

一點都沒有!(哭唧唧)

沒有!(哭唧唧)

原來還有一步沒處理好呢!

5)配置home 路徑

開心~撒花~

Mac 上為mit scheme配置emacs環境

前兩天寫了在mac上安裝mit scheme的文章,講了在mac上安裝mit scheme的過程。安裝了mit scheme以後,可以通過命令列直接執行mit scheme命令進入mit scheme的repl環境。除了可以在repl環境中直接編寫mit scheme 以外,也可以通過一般的編輯器編...

emac常用命令

c x c e h輸出成html c s 開始輸入,再按一次向前搜尋 c r 向後搜尋 c g回到搜尋開始位置 c x 1 只保留當前游標所在的乙個視窗 c x c f 尋找檔案。c x c s 儲存檔案。c x c b 列出緩衝區。c x c c 離開 emacs。c x 1 關掉其它所有窗格,只...

windows下如何github ssh 公鑰

1.安裝git,從程式目錄開啟 git bash 2.鍵入命令 ssh keygen t rsa c email email.com email email.com 是github賬號 3.提醒你輸入key的名稱,輸入如id rsa 4.在c documents and settings admin...