Changeset ee24a4b in dotfiles
- Timestamp:
- Oct 27, 2022, 6:45:40 PM (2 years ago)
- Branches:
- master
- Children:
- acdb8ab
- Parents:
- 313ec50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
r313ec50 ree24a4b 974 974 (define-key prog-mode-map (kbd "<f6>") 'xref-find-definitions) 975 975 976 (add-hook 'sql-mode-hook 'lsp) 976 977 (add-hook 'php-mode-hook 'lsp) 977 978 (add-hook 'c-mode-hook 'lsp-mode) … … 1238 1239 #+BEGIN_SRC emacs-lisp :tangle init.el 1239 1240 ;; Empty for now (was using emacsql) 1240 (add-hook 'sql-mode-hook 'lsp)1241 1241 (setq lsp-sqls-server "~/go/bin/sqls") 1242 1242 1243 (setq lsp-sqls-workspace-config-path nil)1243 ;; (setq lsp-sqls-workspace-config-path nil) 1244 1244 1245 1245 (setq lsp-sqls-connections 1246 '(((driver . "mysql") (dataSourceName . "dbuser:mangoworms@tcp(192.168.2206.6:3306)/profile24")))) 1247 1248 (defun org-babel-edit-prep:sql (babel-info) 1249 (setq-local buffer-file-name (->> babel-info caddr (alist-get :tangle))) 1250 (setq-local lsp-buffer-uri (->> babel-info caddr (alist-get :tangle) lsp--path-to-uri)) 1251 (setq-local lsp-headerline-breadcrumb-enable nil) 1252 (lsp)) 1246 '(((driver . "mysql") (dataSourceName . "dbuser:mangoworms@tcp(localhost:3306)/profile24")))) 1253 1247 #+END_SRC 1254 1248 … … 1259 1253 1260 1254 (setq sql-connection-alist 1261 '((p ool-a1262 1263 (sql-server "192.168.220.6")1264 1265 1266 1267 1255 '((profile24 1256 (sql-product 'mysql) 1257 (sql-server "localhost") 1258 (sql-user "dbuser") 1259 (sql-password "mangoworms") 1260 (sql-database "profile24") 1261 (sql-port 3306)))) 1268 1262 #+end_src 1269 1263 … … 1308 1302 (sql . t) 1309 1303 (sqlite . t))) 1304 1305 (defun org-babel-edit-prep:sql (babel-info) 1306 (setq-local buffer-file-name (->> babel-info caddr (alist-get :tangle))) 1307 (setq-local lsp-buffer-uri (->> babel-info caddr (alist-get :tangle) lsp--path-to-uri)) 1308 (setq-local lsp-headerline-breadcrumb-enable nil) 1309 (lsp)) 1310 1310 1311 1311 (global-set-key (kbd "C-c l") 'org-store-link)
Note:
See TracChangeset
for help on using the changeset viewer.