Created
December 15, 2024 08:01
-
-
Save robdaemon/46fc7ca141d19d17daed75a2c715572e to your computer and use it in GitHub Desktop.
cobol emacs init.d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) | |
(package-initialize) | |
(unless (package-installed-p 'use-package) | |
(package-refresh-contents) | |
(package-install 'use-package)) | |
(eval-and-compile | |
(setq use-package-always-ensure t | |
use-package-expand-minimally t)) | |
(load "~/.emacs.d/cobol-ruler-mode.el") | |
(use-package cobol-mode | |
:mode "\\.cbl\\'" | |
:ensure t) | |
(use-package auto-complete | |
:ensure auto-complete | |
:bind ("M-<tab>" . my--auto-complete) | |
:ensure t | |
:init | |
(defun my--auto-complete () | |
(interactive) | |
(unless (boundp 'auto-complete-mode) | |
(global-auto-complete-mode 1)) | |
(auto-complete)) | |
) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(inhibit-startup-screen t) | |
'(package-selected-packages '(cobol-mode auto-complete-config auto-complete)) | |
'(tool-bar-mode nil)) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight regular :height 120 :width normal))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment