From fd24dc2fd0d1972deb28390c0402a3758d694a64 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Wed, 21 Aug 2019 15:38:13 +0100 Subject: [PATCH] devtools library has been added --- lib/extensions/development.el | 1 + lib/extensions/development/lxgithub.el | 11 +++++++++++ lib/extensions/editor/init.el | 20 ++++++++++---------- lib/fg42.el | 3 ++- lib/fpkg.el | 14 +++++++------- 5 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 lib/extensions/development/lxgithub.el diff --git a/lib/extensions/development.el b/lib/extensions/development.el index 10fa83f..721f207 100644 --- a/lib/extensions/development.el +++ b/lib/extensions/development.el @@ -11,6 +11,7 @@ (depends-on 'smart-mode-line) (depends-on 'dockerfile-mode) (depends-on 'quickrun) +(depends-on 'dash) (with-ability parinfer (depends-on 'parinfer)) diff --git a/lib/extensions/development/lxgithub.el b/lib/extensions/development/lxgithub.el new file mode 100644 index 0000000..521c04f --- /dev/null +++ b/lib/extensions/development/lxgithub.el @@ -0,0 +1,11 @@ +;;; lxgithub.el --- Github integration library for FG42 +;;; Commentary: +;;; Code: + +(require 'gh) +;; Functions ------------------------------------------------- + +(gh-issues-api "api") + +(provide 'lxgithub) +;;; lxgithub.el ends here diff --git a/lib/extensions/editor/init.el b/lib/extensions/editor/init.el index 8adb7db..4fb4927 100644 --- a/lib/extensions/editor/init.el +++ b/lib/extensions/editor/init.el @@ -359,16 +359,16 @@ (decode-char 'ucs #x00A0)) "Vazir") ;; Backup files --------------------------------------------- - ;; Put them in one nice place if possible - (if (file-directory-p "~/.backup") - (setq backup-directory-alist '(("." . "~/.backup"))) - (make-directory "~/.backup")) - - (setq backup-by-copying t) ; Don't delink hardlinks - delete-old-versions t ; Clean up the backups - version-control t ; Use version numbers on backups, - kept-new-versions 3 ; keep some new versions - kept-old-versions 2 ; and some old ones, too + (ability backup-files () + ;; Put them in one nice place if possible + (if (file-directory-p "~/.backup") + (setq backup-directory-alist '(("~/.backup"))) + (make-directory "~/.backup")) + (setq backup-by-copying t) + (setq delete-old-versions t) + (setq version-control t) + (setq kept-new-versions 3) + (setq kept-old-versions 2)) ;; get rid of yes-or-no questions - y or n is enough (defalias 'yes-or-no-p 'y-or-n-p) diff --git a/lib/fg42.el b/lib/fg42.el index a208335..d25b060 100644 --- a/lib/fg42.el +++ b/lib/fg42.el @@ -25,7 +25,7 @@ ;;; Code: (defvar fg42-home (getenv "FG42_HOME") - "The pass to fg42-home") + "The pass to fg42-home.") (defvar fg42-before-initialize-hook nil "This hook will be called before FG42 initilization process.") @@ -48,3 +48,4 @@ (run-hooks 'fg42-after-initialize-hook)) (provide 'fg42) +;; fg42.el ends here diff --git a/lib/fpkg.el b/lib/fpkg.el index b3eb2fd..5c4d8c6 100644 --- a/lib/fpkg.el +++ b/lib/fpkg.el @@ -1,28 +1,28 @@ ;;; fpkg --- a simple package manager for FG42 -*- lexical-binding: t; -*- -;; Copyright (C) 2015 lxsameer +;; Copyright (C) 2010-2019 Sameer Rahmani ;; Author: Sameer Rahmani ;; Keywords: lisp fg42 IDE package manager ;; Version: 1.0.0 - +;; ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. - +;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. - +;; ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . - +;; ;;; Commentary: - +;; ;; Simple package manager for FG42 - +;; ;;; Code: (require 'cl-lib) (require 'subr-x)